From bee930f9b3b9dad52945c1186227519cf9d566aa Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 10 Apr 2009 20:37:05 +0000 Subject: (svn r16024) -Codechange: harden string copying on places where it's possible --- src/video/dedicated_v.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video') diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp index 93ea1c7e2..486ea547e 100644 --- a/src/video/dedicated_v.cpp +++ b/src/video/dedicated_v.cpp @@ -222,7 +222,7 @@ static void DedicatedHandleKeyInput() #else /* Handle console input, and singal console thread, it can accept input again */ assert_compile(lengthof(_win_console_thread_buffer) <= lengthof(input_line)); - strcpy(input_line, _win_console_thread_buffer); + strecpy(input_line, _win_console_thread_buffer, lastof(input_line)); SetEvent(_hWaitForInputHandling); #endif -- cgit v1.2.3-54-g00ecf