diff options
author | jkh <jkh@FreeBSD.org> | 1995-12-01 08:19:12 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-12-01 08:19:12 +0000 |
commit | 65334cb4cf7a51b0e20b2812e9d20b2dd88f42c5 (patch) | |
tree | 23678b8d398edbb4bb06c7d93aef6a8be7d7eb85 /gnu/lib/libreadline | |
parent | eb9ddde393712fc3cfb8fc9c11001b0b5c6cadd9 (diff) | |
download | FreeBSD-src-65334cb4cf7a51b0e20b2812e9d20b2dd88f42c5.zip FreeBSD-src-65334cb4cf7a51b0e20b2812e9d20b2dd88f42c5.tar.gz |
gets() -> fgets()
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 a0a2560..7c23143 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 a269351..bfdc80e 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) || |