X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=36848d83cd387b4f91ecdbc3df3bfb8f80aa021e;hp=0a1de3127ae8aa167d6db35032549ee3e5329ac9;hb=da948cc94ebef4988199c90389a5099b087d2088;hpb=8225fdd5bb6f74172ba0307d7db12c5ce8416eea diff --git a/src/uci.cpp b/src/uci.cpp index 0a1de312..36848d83 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -242,7 +242,10 @@ namespace { } if (token == "value") { - getline(uip, token); // reads until end of line + // Reads until end of line and left trim white space + getline(uip, token); + token.erase(0, token.find_first_not_of(" \n\r\t")); + set_option_value(name, token); } else push_button(name);