summaryrefslogtreecommitdiffstats
path: root/emulators/atari800/files/patch-ac
blob: 9e4e58feea4a1b37174990a4a27d7c80e3e1211b (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
*** prompts.c.orig	Sun Apr 20 23:32:27 1997
--- prompts.c	Sun Apr 20 23:34:30 1997
***************
*** 10,16 ****
    char gash[128];
  
    printf (message, string);
!   gets (gash);
    if (strlen(gash) > 0)
      strcpy (string, gash);
  }
--- 10,16 ----
    char gash[128];
  
    printf (message, string);
!   fgets (gash,128,stdin);
    if (strlen(gash) > 0)
      strcpy (string, gash);
  }
***************
*** 20,26 ****
    char gash[128];
  
    printf (message, *num);
!   gets (gash);
    if (strlen(gash) > 0)
      sscanf (gash,"\n%d", num);
  }
--- 20,26 ----
    char gash[128];
  
    printf (message, *num);
!   fgets (gash,128,stdin);
    if (strlen(gash) > 0)
      sscanf (gash,"\n%d", num);
  }
***************
*** 33,39 ****
    do
      {
        printf (message, *yn);
!       gets (gash);
  
        if (strlen(gash) > 0)
  	t_yn = gash[0];
--- 33,39 ----
    do
      {
        printf (message, *yn);
!       fgets (gash,128,stdin);
  
        if (strlen(gash) > 0)
  	t_yn = gash[0];
OpenPOWER on IntegriCloud