X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=1f1ba096ca6aa38edf39889d5e359dc07c96f9e9;hp=0a1de3127ae8aa167d6db35032549ee3e5329ac9;hb=174b40c28dd6f907ca093864ecaa73136694a7c5;hpb=03f524c591c90120302e127cd0c1adba4c498806 diff --git a/src/uci.cpp b/src/uci.cpp index 0a1de312..1f1ba096 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -242,6 +242,11 @@ namespace { } if (token == "value") { + // Skip whitespace. There should be a better way to do this, but + // I don't know how... + while(isspace(uip.get())); + uip.unget(); + getline(uip, token); // reads until end of line set_option_value(name, token); } else