flutter-ui: 修复 szLineStr 越界溢出问题

This commit is contained in:
Calcitem 2020-11-22 23:59:31 +08:00
parent 9d50ea2204
commit 1d7f98e67f
1 changed files with 1 additions and 1 deletions

View File

@ -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();