X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=36848d83cd387b4f91ecdbc3df3bfb8f80aa021e;hp=b3af1b607a24138d4a87d0b0f327472d9fe0b81d;hb=da948cc94ebef4988199c90389a5099b087d2088;hpb=d2c2af9e1c4f5711e320555fe31ae4ed940802c6 diff --git a/src/uci.cpp b/src/uci.cpp index b3af1b60..36848d83 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -117,7 +117,7 @@ namespace { if (token == "uci") { cout << "id name " << engine_name() - << "\nid author Tord Romstad, Marco Costalba\n"; + << "\nid author Tord Romstad, Marco Costalba, Joona Kiiski\n"; print_uci_options(); cout << "uciok" << endl; } @@ -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);