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
54
55
56
57
58
59
60
61
62
63
64
|
$NetBSD: patch-af,v 1.1 1999/10/01 17:05:15 dmcmahill Exp $
*** src/bin/sconvert.c.orig Tue Aug 19 17:44:17 1997
--- src/bin/sconvert.c Tue Aug 19 17:47:11 1997
***************
*** 80,98 ****
case 1: printf("Input file: ");
(void) fflush(stdout);
! (void) gets(buf);
sf = copy(buf);
printf("Input type: ");
(void) fflush(stdout);
! (void) gets(buf);
f = buf[0];
printf("Output file: ");
(void) fflush(stdout);
! (void) gets(buf);
af = copy(buf);
printf("Output type: ");
(void) fflush(stdout);
! (void) gets(buf);
t = buf[0];
break;
default:
--- 80,98 ----
case 1: printf("Input file: ");
(void) fflush(stdout);
! (void) fgets(buf,BSIZE_SP,stdin);
sf = copy(buf);
printf("Input type: ");
(void) fflush(stdout);
! (void) fgets(buf,BSIZE_SP,stdin);
f = buf[0];
printf("Output file: ");
(void) fflush(stdout);
! (void) fgets(buf,BSIZE_SP,stdin);
af = copy(buf);
printf("Output type: ");
(void) fflush(stdout);
! (void) fgets(buf,BSIZE_SP,stdin);
t = buf[0];
break;
default:
*** src/lib/fte/inp.c.orig Tue Aug 19 17:38:25 1997
--- src/lib/fte/inp.c Tue Aug 19 17:33:01 1997
***************
*** 666,672 ****
fprintf(cp_out, "run circuit? ");
fflush(cp_out);
! (void) gets(buf);
if (buf[0] != 'n') {
fprintf(cp_out, "running circuit\n");
com_run(NULL);
--- 666,672 ----
fprintf(cp_out, "run circuit? ");
fflush(cp_out);
! (void) fgets(buf,BSIZE_SP,stdin);
if (buf[0] != 'n') {
fprintf(cp_out, "running circuit\n");
com_run(NULL);
|