aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-30 15:08:48 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-30 15:08:48 +0000
commit05af6d32e67e92f4bcc21c337acf66c7eb05a3cd (patch)
tree2859704dfe87fb59093590dab50bc2cc24a1dfee /main.c
parent[w3m-dev 02931] use POST in multipart.cgi (diff)
downloadw3m-05af6d32e67e92f4bcc21c337acf66c7eb05a3cd.tar.gz
w3m-05af6d32e67e92f4bcc21c337acf66c7eb05a3cd.zip
[w3m-dev 02933] segmentation fault when w3m -dump https:
* file.c (readHeader): use inputAnswer() * file.c (getAuthCookie): remove term_cbreak() * file.c (checkOverWrite): use inputAnswer() * file.c (inputAnswer): added * istream.c (ssl_get_certificate): use inputAnswer() * main.c (qquitfm): change prompt * proto.h (inputAnswer): added From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 7d1b36d..627d89f 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.73 2002/01/26 17:24:01 ukai Exp $ */
+/* $Id: main.c,v 1.74 2002/01/30 15:08:48 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -2095,8 +2095,8 @@ qquitfm(void)
char *ans;
if (!confirm_on_quit)
quitfm();
- ans = inputChar("Do you want to exit w3m? (y or n)");
- if (ans != NULL && tolower(*ans) == 'y')
+ ans = inputChar("Do you want to exit w3m? (y/n)");
+ if (ans && tolower(*ans) == 'y')
quitfm();
displayBuffer(Currentbuf, B_NORMAL);
}