X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=blobdiff_plain;f=book.c;h=9828dd24e3d09decce7d4e5e45b1914489de2b94;hp=a777edc81a00fb651748b5927b6fb8f44c4bc19b;hb=HEAD;hpb=093d989d136cc87cbb1c739b3ddea5337cf2b702 diff --git a/book.c b/book.c index a777edc..9828dd2 100644 --- a/book.c +++ b/book.c @@ -647,7 +647,7 @@ InitMemBook () } char * -MCprobe (moveNr) +MCprobe (int moveNr) { int count, count2, games, i, choice=0; entry_t entries[MOVE_BUF]; @@ -1029,7 +1029,8 @@ PlayBookMove(char *text, int index) { char *start = text+index, *end = start; while(start > text && start[-1] != ' ' && start[-1] != '\t') start--; - while(*end && *++end != ' ' && *end != '\n'); *end = NULLCHAR; // find clicked word + while(*end && *++end != ' ' && *end != '\n') + ; *end = NULLCHAR; // find clicked word if(start != end) TypeInDoneEvent(start); // fake it was typed in move type-in }