diff options
author | Rob Landley <rob@landley.net> | 2006-06-25 00:34:52 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-06-25 00:34:52 +0000 |
commit | 768945b762b8850691acd2b63116eed18faa1812 (patch) | |
tree | 7b443f4d614e327205a5aa17f2c0371c2a04723e /editors | |
parent | 641c3537c0bf63793a6195108a1d2e682ed4cba1 (diff) | |
download | busybox-w32-768945b762b8850691acd2b63116eed18faa1812.tar.gz busybox-w32-768945b762b8850691acd2b63116eed18faa1812.tar.bz2 busybox-w32-768945b762b8850691acd2b63116eed18faa1812.zip |
A few patches from Erik Hovland, turning strncpy() into safe_strncpy() and
removing some unnecessary code.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/vi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/vi.c b/editors/vi.c index 660c01c3c..a890ad9d3 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -1088,13 +1088,12 @@ static void Hit_Return(void) | |||
1088 | //----- Synchronize the cursor to Dot -------------------------- | 1088 | //----- Synchronize the cursor to Dot -------------------------- |
1089 | static void sync_cursor(Byte * d, int *row, int *col) | 1089 | static void sync_cursor(Byte * d, int *row, int *col) |
1090 | { | 1090 | { |
1091 | Byte *beg_cur, *end_cur; // begin and end of "d" line | 1091 | Byte *beg_cur; // begin and end of "d" line |
1092 | Byte *beg_scr, *end_scr; // begin and end of screen | 1092 | Byte *beg_scr, *end_scr; // begin and end of screen |
1093 | Byte *tp; | 1093 | Byte *tp; |
1094 | int cnt, ro, co; | 1094 | int cnt, ro, co; |
1095 | 1095 | ||
1096 | beg_cur = begin_line(d); // first char of cur line | 1096 | beg_cur = begin_line(d); // first char of cur line |
1097 | end_cur = end_line(d); // last char of cur line | ||
1098 | 1097 | ||
1099 | beg_scr = end_scr = screenbegin; // first char of screen | 1098 | beg_scr = end_scr = screenbegin; // first char of screen |
1100 | end_scr = end_screen(); // last char of screen | 1099 | end_scr = end_screen(); // last char of screen |