From 768945b762b8850691acd2b63116eed18faa1812 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 25 Jun 2006 00:34:52 +0000 Subject: A few patches from Erik Hovland, turning strncpy() into safe_strncpy() and removing some unnecessary code. --- editors/vi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'editors') 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 -- cgit v1.2.3