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:
parent
295352d04a
commit
5080e72ea5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue