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/usr.bin/as | |
parent | eb9ddde393712fc3cfb8fc9c11001b0b5c6cadd9 (diff) | |
download | FreeBSD-src-65334cb4cf7a51b0e20b2812e9d20b2dd88f42c5.zip FreeBSD-src-65334cb4cf7a51b0e20b2812e9d20b2dd88f42c5.tar.gz |
gets() -> fgets()
Diffstat (limited to 'gnu/usr.bin/as')
-rw-r--r-- | gnu/usr.bin/as/hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/as/hash.c b/gnu/usr.bin/as/hash.c index b9cc1bc..70068ea 100644 --- a/gnu/usr.bin/as/hash.c +++ b/gnu/usr.bin/as/hash.c @@ -123,7 +123,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: hash.c,v 1.2 1993/11/03 00:51:44 paul Exp $"; +static char rcsid[] = "$Id: hash.c,v 1.3 1995/05/30 04:46:18 rgrimes Exp $"; #endif #include <stdio.h> @@ -837,7 +837,7 @@ main() for (;;) { printf("hash_test command: "); - gets(answer); + fgets(answer, 100, stdin); command = answer[0]; if (isupper(command)) command = tolower(command); /* ecch! */ switch (command) @@ -929,7 +929,7 @@ char * description; char * malloc(); printf(" %s : ",description); - gets(answer); + fgets(answer, 100, stdin); /* will one day clean up answer here */ retval = malloc(strlen(answer)+1); if (!retval) @@ -967,7 +967,7 @@ whattable() /* determine number: what hash table to use */ for (;;) { printf(" what hash table (%d:%d) ? ",0,TABLES-1); - gets(answer); + fgets(answer, 100, stdin); sscanf(answer,"%d",&number); if (number >= 0 && number<TABLES) { |