diff options
Diffstat (limited to 'crypt/cert.c')
-rw-r--r-- | crypt/cert.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crypt/cert.c b/crypt/cert.c index 32c4386..5b4277f 100644 --- a/crypt/cert.c +++ b/crypt/cert.c @@ -99,7 +99,11 @@ get8 (char *cp) int i,j,t; for(i=0;i<8;i++){ - scanf("%2x",&t); + if (scanf("%2x",&t) < 1) + { + if(ferror(stdin)) + totfails++; + } if(feof(stdin)) good_bye(); for(j=0; j<8 ; j++) { |