flutter: Fix null ptr ref
Step: AI vs AI Back Settings Crash
This commit is contained in:
parent
0d35054f35
commit
450643a043
|
@ -59,7 +59,7 @@ bool CommandQueue::read(char *dest)
|
|||
return false;
|
||||
}
|
||||
|
||||
strncpy(dest, commands[readIndex], COMMAND_LENGTH);
|
||||
strncpy(dest, commands[readIndex], 1024); // See uci.cpp LINE_INPUT_MAX_CHAR
|
||||
strncpy(commands[readIndex], "", COMMAND_LENGTH);
|
||||
|
||||
if (++readIndex == MAX_COMMAND_COUNT) {
|
||||
|
|
Loading…
Reference in New Issue