diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-05 03:45:33 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-05 03:45:33 +0000 |
commit | 18f99feec285a90c6e06aa02829daded71015841 (patch) | |
tree | ca49984251178a8ad3fb2b1d2df84599e60f0527 | |
parent | w3m 0.2.5.1 - 2002-02-05 (diff) | |
download | w3m-18f99feec285a90c6e06aa02829daded71015841.tar.gz w3m-18f99feec285a90c6e06aa02829daded71015841.zip |
[w3m-dev 02989]
* file.c (inputAnswer): use Strfgets() instead of fgets()
From: Fumitoshi UKAI <ukai@debian.or.jp>
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | file.c | 6 |
2 files changed, 8 insertions, 5 deletions
@@ -1,3 +1,8 @@ +2002-02-05 Fumitoshi UKAI <ukai@debian.or.jp> + + * [w3m-dev 02989] + * file.c (inputAnswer): use Strfgets() instead of fgets() + 2002-02-04 TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp> * [w3m-dev 02986] @@ -2794,4 +2799,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.299 2002/02/04 15:26:44 ukai Exp $ +$Id: ChangeLog,v 1.300 2002/02/05 03:45:33 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.63 2002/02/04 15:26:44 ukai Exp $ */ +/* $Id: file.c,v 1.64 2002/02/05 03:45:33 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -6985,7 +6985,6 @@ char * inputAnswer(char *prompt) { char *ans; - char buf[80]; if (fmInitialized) { term_raw(); @@ -6994,8 +6993,7 @@ inputAnswer(char *prompt) else { printf(prompt); fflush(stdout); - fgets(buf, 80, stdin); - ans = allocStr(buf, 1); + ans = Strfgets(stdin)->ptr; } return ans; } |