summaryrefslogtreecommitdiff
path: root/cad/spice/files/patch-src_bin_sconvert_c
blob: 97f904a0cd63eefe6f50b50cd7c0c81392798c23 (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
--- src/bin/sconvert.c.orig	Mon Sep 14 21:30:41 1992
+++ src/bin/sconvert.c	Thu Jul 17 00:47:50 2003
@@ -80,19 +80,19 @@
 
         case 1: printf("Input file: ");
             (void) fflush(stdout);
-            (void) gets(buf);
+            (void) fgets(buf,BSIZE_SP,stdin);
             sf = copy(buf);
             printf("Input type: ");
             (void) fflush(stdout);
-            (void) gets(buf);
+            (void) fgets(buf,BSIZE_SP,stdin);
             f = buf[0];
             printf("Output file: ");
             (void) fflush(stdout);
-            (void) gets(buf);
+            (void) fgets(buf,BSIZE_SP,stdin);
             af = copy(buf);
             printf("Output type: ");
             (void) fflush(stdout);
-            (void) gets(buf);
+            (void) fgets(buf,BSIZE_SP,stdin);
             t = buf[0];
             break;
         default: