Some code improvements

This commit is contained in:
Markus Gans 2015-10-01 05:38:55 +02:00
parent e3b7a32265
commit 976f685ae0
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ char* FOptiMove::cursor_move (int xold, int yold, int xnew, int ynew)
if ( move_xy ) if ( move_xy )
{ {
method = 0; method = 0;
strcpy (move_ptr, move_xy); strncpy (move_ptr, move_xy, sizeof(move_buf) - 1);
move_time = F_cursor_address.duration; move_time = F_cursor_address.duration;
if ( xold < 0 if ( xold < 0