(svn r16024) -Codechange: harden string copying on places where it's possible

This commit is contained in:
rubidium
2009-04-10 20:37:05 +00:00
parent 4bf3508680
commit bee930f9b3
8 changed files with 16 additions and 16 deletions

View File

@@ -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