BSD 4 release
[unix-history] / usr / src / cmd / arff.c
index 4ffe2e1..be128e7 100644 (file)
@@ -1,3 +1,4 @@
+static char *sccsid = "@(#)arff.c      4.2 (Berkeley) 11/3/80";
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <time.h>
@@ -107,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')++;