flutter-ui: 修复 szLineStr 越界溢出问题
This commit is contained in:
parent
9d50ea2204
commit
1d7f98e67f
|
@ -201,7 +201,7 @@ void UCI::loop(int argc, char *argv[])
|
|||
|
||||
do {
|
||||
#ifdef FLUTTER_UI
|
||||
static const int LINE_INPUT_MAX_CHAR = 256;
|
||||
static const int LINE_INPUT_MAX_CHAR = 1024;
|
||||
char szLineStr[LINE_INPUT_MAX_CHAR];
|
||||
CommandChannel *channel = CommandChannel::getInstance();
|
||||
while (!channel->popupCommand(szLineStr)) Idle();
|
||||
|
|
Loading…
Reference in New Issue