From 60c5f4b63c42921432021a455d03dad15544f968 Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sat, 12 Dec 2020 17:47:59 +0800 Subject: [PATCH] =?UTF-8?q?uci:=20channel:=20szLineStr=20=E6=9B=B4?= =?UTF-8?q?=E5=90=8D=E4=B8=BA=20line?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/uci.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/uci.cpp b/src/uci.cpp index 5d11e864..1364b184 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -220,11 +220,12 @@ void UCI::loop(int argc, char *argv[]) do { #ifdef FLUTTER_UI static const int LINE_INPUT_MAX_CHAR = 1024; - char szLineStr[LINE_INPUT_MAX_CHAR]; + char line[LINE_INPUT_MAX_CHAR]; CommandChannel *channel = CommandChannel::getInstance(); - while (!channel->popupCommand(szLineStr)) Idle(); - cmd = szLineStr; - LOGD("szLine = %s\n", szLineStr); + while (!channel->popupCommand(line)) + Idle(); + cmd = line; + LOGD("[uci] input: %s\n", line); #else if (argc == 1 && !getline(cin, cmd)) // Block here waiting for input or EOF cmd = "quit";