1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

Prefer strncpy() to strcpy()

This removes a warning under MSVC++

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2008-09-18 09:49:54 +01:00
parent 295352d04a
commit 5080e72ea5

View file

@ -2135,7 +2135,7 @@ namespace {
if(data) {
char input[256];
if(fgets(input, 255, stdin) == NULL)
strcpy(input, "quit\n");
strncpy(input, "quit\n", 5);
if(strncmp(input, "quit", 4) == 0) {
AbortSearch = true;
PonderSearch = false;