summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-08-29 18:33:36 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-08-29 18:33:36 +0000
commitec43f6ac7009b9116ad7ba090eb2761f76a385cb (patch)
treef13327aea48849e50aac7ed1cd0574efd828e861 /net
parent. Make this port act more like a standard FreeBSD port: (diff)
. Use fgets(3) rather than gets(3).
. Add $FreeBSD$.
Notes
Notes: svn path=/head/; revision=87996
Diffstat (limited to 'net')
-rw-r--r--net/dgd-lpmud/files/oconv.c3
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");