"Typo and/or thinko: scanning till the end of NUL terminated string

should check the byte pointed at not the pointer itself." -junkio@
This commit is contained in:
Glenn L McGrath 2003-08-28 22:12:53 +00:00
parent e7bdfccb3f
commit 523c1675a2

View File

@ -168,7 +168,7 @@ static char *get_token(char **buffer)
while (isspace(*current)) { current++; }
if (*current != 0) {
start = current;
while (!isspace(*current) && current != 0) { current++; }
while (!isspace(*current) && *current != 0) { current++; }
*buffer = current;
}
return start;