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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ui/ui_openssl.c b/src/lib/libcrypto/ui/ui_openssl.c
index 5832a73cf5..1e3dba0833 100644
--- a/src/lib/libcrypto/ui/ui_openssl.c
+++ b/src/lib/libcrypto/ui/ui_openssl.c
@@ -122,7 +122,7 @@
122 * sigaction and fileno included. -pedantic would be more appropriate for 122 * sigaction and fileno included. -pedantic would be more appropriate for
123 * the intended purposes, but we can't prevent users from adding -ansi. 123 * the intended purposes, but we can't prevent users from adding -ansi.
124 */ 124 */
125#if !defined(_POSIX_C_SOURCE) && defined(OPENSSL_SYS_VMS) 125#ifndef _POSIX_C_SOURCE
126#define _POSIX_C_SOURCE 2 126#define _POSIX_C_SOURCE 2
127#endif 127#endif
128#include <signal.h> 128#include <signal.h>
@@ -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 }