diff options
author | glewis <glewis@FreeBSD.org> | 2003-08-30 02:33:36 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2003-08-30 02:33:36 +0800 |
commit | 4b6da919563d31af96cd91c92b678a14dd4d3c4d (patch) | |
tree | bd80052af85f5d893ff46a88ccfcaf8fd7ca744a /net/dgd-lpmud | |
parent | 14ca26f8f2115c2754861fa5968f5bac1e37b005 (diff) | |
download | freebsd-ports-gnome-4b6da919563d31af96cd91c92b678a14dd4d3c4d.tar.gz freebsd-ports-gnome-4b6da919563d31af96cd91c92b678a14dd4d3c4d.tar.zst freebsd-ports-gnome-4b6da919563d31af96cd91c92b678a14dd4d3c4d.zip |
. Use fgets(3) rather than gets(3).
. Add $FreeBSD$.
Diffstat (limited to 'net/dgd-lpmud')
-rw-r--r-- | net/dgd-lpmud/files/oconv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dgd-lpmud/files/oconv.c b/net/dgd-lpmud/files/oconv.c index f129e2cb1790..3fe1fcbf8e1b 100644 --- a/net/dgd-lpmud/files/oconv.c +++ b/net/dgd-lpmud/files/oconv.c @@ -1,4 +1,5 @@ /* convert old LPmud .o files to new DGD .o format */ +/* $FreeBSD$ */ # include <ctype.h> # include <string.h> # include <stdio.h> @@ -129,7 +130,7 @@ main() char *p; puts("#"); - while (gets(buffer) != (char *) NULL) { + while (fgets(buffer, sizeof(buffer), stdin) != (char *) NULL) { p = strchr(buffer, ' '); if (p == (char *) NULL) { fprintf(stderr, "variable name expected\n"); |