A few patches from Erik Hovland, turning strncpy() into safe_strncpy() and
removing some unnecessary code.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user