[BusyBox-cvs] busybox/editors vi.c,1.26,1.27
Glenn McGrath
bug1 at busybox.net
Tue Dec 3 21:48:18 UTC 2002
Update of /var/cvs/busybox/editors
In directory winder:/tmp/cvs-serv8480
Modified Files:
vi.c
Log Message:
Fix crashme code, by Jim Treadway
Index: vi.c
===================================================================
RCS file: /var/cvs/busybox/editors/vi.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- vi.c 2 Dec 2002 21:18:08 -0000 1.26
+++ vi.c 3 Dec 2002 21:48:15 -0000 1.27
@@ -3951,7 +3951,7 @@
{
static time_t oldtim;
time_t tim;
- char d[2], buf[BUFSIZ], msg[BUFSIZ];
+ char d[2], msg[BUFSIZ];
msg[0] = '\0';
if (end < text) {
@@ -3975,7 +3975,7 @@
if (strlen(msg) > 0) {
alarm(0);
- printf(buf, "\n\n%d: \'%c\' %s\n\n\n%s[Hit return to continue]%s",
+ printf("\n\n%d: \'%c\' %s\n\n\n%s[Hit return to continue]%s",
totalcmds, last_input_char, msg, SOs, SOn);
fflush(stdout);
while (read(0, d, 1) > 0) {
More information about the busybox-cvs
mailing list