read 128 bytes not 2
authorBill Joy <bill@ucbvax.Berkeley.EDU>
Tue, 4 Nov 1980 07:29:30 +0000 (23:29 -0800)
committerBill Joy <bill@ucbvax.Berkeley.EDU>
Tue, 4 Nov 1980 07:29:30 +0000 (23:29 -0800)
SCCS-vsn: old/arff/arff.c 4.2

usr/src/old/arff/arff.c

index 9f1d0d3..80cd615 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)arff.c      4.1 (Berkeley) %G%";
+static char *sccsid = "@(#)arff.c      4.2 (Berkeley) %G%";
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <time.h>
@@ -108,10 +108,10 @@ char *argv[];
                {
 #define SURE   "Are you sure you want to clobber the floppy?\n"
                        int tty;
                {
 #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));
                        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')++;
                        if(*response!='y')
                                exit(50);
                        flag('c')++;