summaryrefslogtreecommitdiff
path: root/games/abuse/patches/patch-ae
blob: 7fe11695cc114dc3c58535cc12c9b54d2c1f398b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-ae,v 1.2 2001/07/02 15:30:59 abs Exp $

--- abuse/src/net/mac/tcpip.c.orig	Mon Jul  2 14:51:02 2001
+++ abuse/src/net/mac/tcpip.c
@@ -118,8 +118,11 @@
 	  }
 	  else
 	  {
+		  char *ptr;
 		  printf("Enter ip address:");
-		  gets(my_name);
+		  fgets(my_name, 100, stdin);
+		  if (ptr = strchr(my_name, '\n'))
+			*ptr = 0;
 	  }
 	}