summaryrefslogtreecommitdiff
path: root/editors/vi.c
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/vi.c
parentbf91f2eb1bb1a9b3ae621f3941d62d91ff30e50f (diff)
downloadbusybox-w32-7127b58baa864f93e32bc8a800ebc9b7e9706aac.tar.gz
busybox-w32-7127b58baa864f93e32bc8a800ebc9b7e9706aac.tar.bz2
busybox-w32-7127b58baa864f93e32bc8a800ebc9b7e9706aac.zip
Fix crashme code, by Jim Treadway
Diffstat (limited to 'editors/vi.c')
-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 @@
19 */ 19 */
20 20
21static const char vi_Version[] = 21static const char vi_Version[] =
22 "$Id: vi.c,v 1.26 2002/12/02 21:18:08 bug1 Exp $"; 22 "$Id: vi.c,v 1.27 2002/12/03 21:48:15 bug1 Exp $";
23 23
24/* 24/*
25 * To compile for standalone use: 25 * To compile for standalone use:
@@ -3951,7 +3951,7 @@ static void crash_test()
3951{ 3951{
3952 static time_t oldtim; 3952 static time_t oldtim;
3953 time_t tim; 3953 time_t tim;
3954 char d[2], buf[BUFSIZ], msg[BUFSIZ]; 3954 char d[2], msg[BUFSIZ];
3955 3955
3956 msg[0] = '\0'; 3956 msg[0] = '\0';
3957 if (end < text) { 3957 if (end < text) {
@@ -3975,7 +3975,7 @@ static void crash_test()
3975 3975
3976 if (strlen(msg) > 0) { 3976 if (strlen(msg) > 0) {
3977 alarm(0); 3977 alarm(0);
3978 printf(buf, "\n\n%d: \'%c\' %s\n\n\n%s[Hit return to continue]%s", 3978 printf("\n\n%d: \'%c\' %s\n\n\n%s[Hit return to continue]%s",
3979 totalcmds, last_input_char, msg, SOs, SOn); 3979 totalcmds, last_input_char, msg, SOs, SOn);
3980 fflush(stdout); 3980 fflush(stdout);
3981 while (read(0, d, 1) > 0) { 3981 while (read(0, d, 1) > 0) {