diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/ui/ui_openssl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ui/ui_openssl.c b/src/lib/libcrypto/ui/ui_openssl.c index ef930bf247..5fbedf6ff8 100644 --- a/src/lib/libcrypto/ui/ui_openssl.c +++ b/src/lib/libcrypto/ui/ui_openssl.c | |||
| @@ -396,7 +396,8 @@ static void read_till_nl(FILE *in) | |||
| 396 | char buf[SIZE+1]; | 396 | char buf[SIZE+1]; |
| 397 | 397 | ||
| 398 | do { | 398 | do { |
| 399 | fgets(buf,SIZE,in); | 399 | if (fgets(buf,sizeof(buf),in) == NULL) |
| 400 | break; | ||
| 400 | } while (strchr(buf,'\n') == NULL); | 401 | } while (strchr(buf,'\n') == NULL); |
| 401 | } | 402 | } |
| 402 | 403 | ||
