From bc04334ba60be90dad6d1d425a91ac046efab4ed Mon Sep 17 00:00:00 2001 From: Bill Joy Date: Mon, 3 Nov 1980 23:29:30 -0800 Subject: [PATCH] read 128 bytes not 2 SCCS-vsn: old/arff/arff.c 4.2 --- usr/src/old/arff/arff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/src/old/arff/arff.c b/usr/src/old/arff/arff.c index 9f1d0d3586..80cd61533a 100644 --- a/usr/src/old/arff/arff.c +++ b/usr/src/old/arff/arff.c @@ -1,4 +1,4 @@ -static char *sccsid = "@(#)arff.c 4.1 (Berkeley) %G%"; +static char *sccsid = "@(#)arff.c 4.2 (Berkeley) %G%"; #include #include #include @@ -108,10 +108,10 @@ char *argv[]; { #define SURE "Are you sure you want to clobber the floppy?\n" int tty; - char response[2]; + char response[128]; tty = open("/dev/tty",2); write(tty,SURE,sizeof(SURE)); - read(tty,response,2); + read(tty,response,128); if(*response!='y') exit(50); flag('c')++; -- 2.20.1