1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/cad/spice/files/patch-src_bin_sconvert_c
Martin Wilke 00899d7b5f - Fix build with CLANG
PR:		158270
Submitted by:	Pedro Giffuni <giffunip@tutopia.com> (maintainer)
2011-06-25 07:46:56 +00:00

36 lines
1022 B
Plaintext

--- 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: