"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:
parent
e7bdfccb3f
commit
523c1675a2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user