aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-12-03 21:48:15 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-12-03 21:48:15 +0000
commit7127b58baa864f93e32bc8a800ebc9b7e9706aac (patch)
treea70da4283410e679d61f5ce4bd80aad97a5a131e /editors
parentbf91f2eb1bb1a9b3ae621f3941d62d91ff30e50f (diff)
downloadbusybox-7127b58baa864f93e32bc8a800ebc9b7e9706aac.tar.gz
Fix crashme code, by Jim Treadway
Diffstat (limited to 'editors')
-rw-r--r--editors/vi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 8e9ecc925..cda17db1a 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -19,7 +19,7 @@
*/
static const char vi_Version[] =
- "$Id: vi.c,v 1.26 2002/12/02 21:18:08 bug1 Exp $";
+ "$Id: vi.c,v 1.27 2002/12/03 21:48:15 bug1 Exp $";
/*
* To compile for standalone use:
@@ -3951,7 +3951,7 @@ static void crash_test()
{
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 @@ static void crash_test()
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) {