summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ui/ui_openssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ui/ui_openssl.c')
-rw-r--r--src/lib/libcrypto/ui/ui_openssl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ui/ui_openssl.c b/src/lib/libcrypto/ui/ui_openssl.c
index ef930bf247..8446673ed4 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
@@ -677,8 +678,6 @@ static int noecho_fgets(char *buf, int size, FILE *tty)
677 size--; 678 size--;
678#ifdef WIN16TTY 679#ifdef WIN16TTY
679 i=_inchar(); 680 i=_inchar();
680#elif defined(_WIN32)
681 i=_getch();
682#else 681#else
683 i=getch(); 682 i=getch();
684#endif 683#endif