summaryrefslogtreecommitdiff
path: root/editors/vi.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-06-25 00:34:52 +0000
committerRob Landley <rob@landley.net>2006-06-25 00:34:52 +0000
commit768945b762b8850691acd2b63116eed18faa1812 (patch)
tree7b443f4d614e327205a5aa17f2c0371c2a04723e /editors/vi.c
parent641c3537c0bf63793a6195108a1d2e682ed4cba1 (diff)
downloadbusybox-768945b762b8850691acd2b63116eed18faa1812.tar.gz
A few patches from Erik Hovland, turning strncpy() into safe_strncpy() and
removing some unnecessary code.
Diffstat (limited to 'editors/vi.c')
-rw-r--r--editors/vi.c3
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)
//----- Synchronize the cursor to Dot --------------------------
static void sync_cursor(Byte * d, int *row, int *col)
{
- Byte *beg_cur, *end_cur; // begin and end of "d" line
+ Byte *beg_cur; // begin and end of "d" line
Byte *beg_scr, *end_scr; // begin and end of screen
Byte *tp;
int cnt, ro, co;
beg_cur = begin_line(d); // first char of cur line
- end_cur = end_line(d); // last char of cur line
beg_scr = end_scr = screenbegin; // first char of screen
end_scr = end_screen(); // last char of screen