w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 26697cd7d677e269ba44cc68bb6ddba19713983b
parent c5d7dd5a276b84acd11b558071f8790eb7c71e19
Author: ukai <ukai>
Date:   Tue,  5 Feb 2002 03:45:33 +0000

[w3m-dev 02989]
* file.c (inputAnswer): use Strfgets() instead of fgets()
From: Fumitoshi UKAI  <ukai@debian.or.jp>

Diffstat:
MChangeLog | 5+++++
Mfile.c | 4+---
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -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] diff --git a/file.c b/file.c @@ -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; }