7837273b5c
Avoid gets() usage and add __sparc__ to alignment needing CPUs, allowing it to run on my ss5.
17 lines
356 B
Text
17 lines
356 B
Text
$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;
|
|
}
|
|
}
|
|
|