$NetBSD: patch-ad,v 1.2 2001/02/25 22:14:20 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 }