X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=parser.c;h=e3250050557709805ea1e299fb1796a936250fd8;hb=5cab485d7a39f1b15558fc3b06d57d2164a7dc5d;hp=c2eda2b25422e4de0591a23359a6441ac6b2bf9c;hpb=af3d528cf16eae800ff7f0b8b62f77ced7493412;p=xboard.git diff --git a/parser.c b/parser.c index c2eda2b..e325005 100644 --- a/parser.c +++ b/parser.c @@ -404,7 +404,7 @@ NextUnit (char **p) if(**p == NULLCHAR) { // make sure there is something to parse if(fromString) return 0; // we are parsing string, so the end is really the end - *p = inPtr = inputBuf; + *p = inPtr = parseStart = inputBuf; if(!ReadLine()) return 0; // EOF } else if(inPtr > inputBuf + PARSEBUFSIZE/2) { // buffer fills up with already parsed stuff char *q = *p, *r = inputBuf;