summaryrefslogtreecommitdiff
path: root/math/mcsim/patches/patch-ad
blob: 53a7bbfe82fc4badfc45daf4b4824c180580a7b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ad,v 1.1.1.1 2000/11/26 23:02:39 jtb Exp $

--- sim/sim.c.orig	Wed Nov 22 22:45:45 2000
+++ sim/sim.c
@@ -653,7 +653,7 @@
   scanf ("%[^:\f\r\v\n]", *pszFileIn);
   getchar();
 #else
-  gets (*pszFileIn);
+  fgets (*pszFileIn, sizeof(*pszFileIn), stdin);
   *pszFileIn = strtok (*pszFileIn, " \t");
 #endif
 
@@ -665,7 +665,7 @@
 #ifdef _MACOSLEVEL1_
     scanf ("%[^:\f\r\v\n]", *pszFileOut);
 #else
-    gets (*pszFileOut);
+    fgets (*pszFileOut, sizeof(pszFileOut), stdin);
     *pszFileOut = strtok (*pszFileOut, " \t");
 #endif
   }