diff options
Diffstat (limited to 'src/lib/libcrypto/ui/ui_openssl.c')
-rw-r--r-- | src/lib/libcrypto/ui/ui_openssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ui/ui_openssl.c b/src/lib/libcrypto/ui/ui_openssl.c index 1bc25f48d5..1e3dba0833 100644 --- a/src/lib/libcrypto/ui/ui_openssl.c +++ b/src/lib/libcrypto/ui/ui_openssl.c | |||
@@ -398,8 +398,8 @@ static int read_till_nl(FILE *in) | |||
398 | char buf[SIZE+1]; | 398 | char buf[SIZE+1]; |
399 | 399 | ||
400 | do { | 400 | do { |
401 | if (!fgets(buf,SIZE,in)) | 401 | if (fgets(buf,sizeof(buf),in) == NULL) |
402 | return 0; | 402 | break; |
403 | } while (strchr(buf,'\n') == NULL); | 403 | } while (strchr(buf,'\n') == NULL); |
404 | return 1; | 404 | return 1; |
405 | } | 405 | } |