aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/atari800/files/patch-ab
blob: 12b39bf31bdfe339feb05e5492e6d7287d3ecd11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- prompts.c.orig	Thu Jun 18 20:20:15 1998
+++ prompts.c	Thu Jun 18 20:22:22 1998
@@ -10,7 +10,7 @@
 	char gash[128];
 
 	printf(message, string);
-	gets(gash);
+	fgets(gash,128,stdin);
 	if (strlen(gash) > 0)
 		strcpy(string, gash);
 }
@@ -20,7 +20,7 @@
 	char gash[128];
 
 	printf(message, *num);
-	gets(gash);
+	fgets(gash,128,stdin);
 	if (strlen(gash) > 0)
 		sscanf(gash, "\n%d", num);
 }
@@ -32,7 +32,7 @@
 
 	do {
 		printf(message, *yn);
-		gets(gash);
+		fgets(gash,128,stdin);
 
 		if (strlen(gash) > 0)
 			t_yn = gash[0];