"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++; }
|
while (isspace(*current)) { current++; }
|
||||||
if (*current != 0) {
|
if (*current != 0) {
|
||||||
start = current;
|
start = current;
|
||||||
while (!isspace(*current) && current != 0) { current++; }
|
while (!isspace(*current) && *current != 0) { current++; }
|
||||||
*buffer = current;
|
*buffer = current;
|
||||||
}
|
}
|
||||||
return start;
|
return start;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user