diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-12-01 08:19:12 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-12-01 08:19:12 +0000 |
| commit | d7c4e4ec1e72ae8a3a4a879e85499cc015e131a8 (patch) | |
| tree | 23678b8d398edbb4bb06c7d93aef6a8be7d7eb85 /gnu/lib/libreadline | |
| parent | b203792f984dbfe0835f5c09d42aaf1170f1ad2b (diff) | |
Notes
Diffstat (limited to 'gnu/lib/libreadline')
| -rw-r--r-- | gnu/lib/libreadline/history.c | 2 | ||||
| -rw-r--r-- | gnu/lib/libreadline/tilde.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gnu/lib/libreadline/history.c b/gnu/lib/libreadline/history.c index a0a25603f419..7c23143a2073 100644 --- a/gnu/lib/libreadline/history.c +++ b/gnu/lib/libreadline/history.c @@ -2149,7 +2149,7 @@ main () while (!done) { fprintf (stdout, "history%% "); - t = gets (line); + t = fgets (line, 1024, stdin); if (!t) strcpy (line, "quit"); diff --git a/gnu/lib/libreadline/tilde.c b/gnu/lib/libreadline/tilde.c index a2693514e5de..bfdc80e29c3f 100644 --- a/gnu/lib/libreadline/tilde.c +++ b/gnu/lib/libreadline/tilde.c @@ -316,7 +316,7 @@ main (argc, argv) printf ("~expand: "); fflush (stdout); - if (!gets (line)) + if (!fgets(line, 512, stdin)) strcpy (line, "done"); if ((strcmp (line, "done") == 0) || |
