summaryrefslogtreecommitdiff
path: root/graphics/mplex/patches/patch-ae
blob: 7c6bee094f7df122993dd0cd578369713eb3d235 (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-ae,v 1.1.1.1 2001/09/23 20:37:35 tron Exp $

--- interact.c.orig	Wed May 31 04:18:33 1995
+++ interact.c
@@ -67,7 +67,7 @@
     char input[20];
 
     printf ("\nContinue processing (y/n) : ");
-    do gets (input);
+    do fgets (input, sizeof(input), stdin);
     while (input[0]!='N'&&input[0]!='n'&&input[0]!='y'&&input[0]!='Y');
 
     if (input[0]=='N' || input[0]=='n')
@@ -92,7 +92,7 @@
     char input[20];
 
     printf ("\nVery verbose mode (y/n) : ");
-    do gets (input);
+    do fgets (input, sizeof(input), stdin);
     while (input[0]!='N'&&input[0]!='n'&&input[0]!='y'&&input[0]!='Y');
 
     if (input[0]=='N' || input[0]=='n') return (FALSE); else return (TRUE);