blob: 3864a1f157633cf4e578bc6cecf61eec420bde89 (
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
30
31
32
33
34
35
|
--- src/bin/sconvert.c.orig 1992-09-15 01:30:41.000000000 +0000
+++ src/bin/sconvert.c 2011-06-24 19:05:59.000000000 +0000
@@ -36,7 +36,7 @@
static struct plot *oldread();
static char *fixdate();
-void
+int
main(ac, av)
char **av;
{
@@ -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:
|