From f767a82fd307527417188f07efa0b0a7e2655566 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 4 Feb 2002 14:49:21 +0000 Subject: [w3m-dev 02985] inputAnswer() and no "ssl_forbid_method" * file.c (inputAnswer): buf size is 80 * url.c (openSSLHandle): if old_ssl_forbid_method == ssl_forbid_method ssl path is not modified From: Fumitoshi UKAI --- file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index 34959f7..f2f10bc 100644 --- a/file.c +++ b/file.c @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.60 2002/02/03 15:22:24 ukai Exp $ */ +/* $Id: file.c,v 1.61 2002/02/04 14:49:21 ukai Exp $ */ #include "fm.h" #include #include "myctype.h" @@ -6982,7 +6982,7 @@ char * inputAnswer(char *prompt) { char *ans; - char buf[2]; + char buf[80]; if (fmInitialized) { term_raw(); @@ -6991,7 +6991,7 @@ inputAnswer(char *prompt) else { printf(prompt); fflush(stdout); - fgets(buf, 2, stdin); + fgets(buf, 80, stdin); ans = allocStr(buf, 1); } return ans; -- cgit v1.2.3