X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=e4675df56ea35b75b39a14c9672e901310d3f6e5;hb=94929c36bd6cf484d9f110188b58e7bcccc2f544;hp=71da3ec18a985f04b340b544959c396846184f6d;hpb=295352d04ad932743941b043ddd90d556bedd89d;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 71da3ec1..e4675df5 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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;