From 976f685ae04e90e88d9ce50a5ca82240e00f6cbf Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Thu, 1 Oct 2015 05:38:55 +0200 Subject: [PATCH] Some code improvements --- src/foptimove.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/foptimove.cpp b/src/foptimove.cpp index ee91a7aa..ec59598c 100644 --- a/src/foptimove.cpp +++ b/src/foptimove.cpp @@ -553,7 +553,7 @@ char* FOptiMove::cursor_move (int xold, int yold, int xnew, int ynew) if ( move_xy ) { method = 0; - strcpy (move_ptr, move_xy); + strncpy (move_ptr, move_xy, sizeof(move_buf) - 1); move_time = F_cursor_address.duration; if ( xold < 0