aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2003-08-30 02:33:36 +0800
committerglewis <glewis@FreeBSD.org>2003-08-30 02:33:36 +0800
commit4b6da919563d31af96cd91c92b678a14dd4d3c4d (patch)
treebd80052af85f5d893ff46a88ccfcaf8fd7ca744a /net
parent14ca26f8f2115c2754861fa5968f5bac1e37b005 (diff)
downloadfreebsd-ports-graphics-4b6da919563d31af96cd91c92b678a14dd4d3c4d.tar.gz
freebsd-ports-graphics-4b6da919563d31af96cd91c92b678a14dd4d3c4d.tar.zst
freebsd-ports-graphics-4b6da919563d31af96cd91c92b678a14dd4d3c4d.zip
. Use fgets(3) rather than gets(3).
. Add $FreeBSD$.
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 f129e2cb179..3fe1fcbf8e1 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");