diff options
author | Glenn L McGrath | 2003-08-28 22:12:53 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-08-28 22:12:53 +0000 |
commit | 523c1675a20cde6ae3c6a04a8d5c5285992a5fdc (patch) | |
tree | c233697a13ac14591cfdacc12d4aa32c0c9b6849 | |
parent | e7bdfccb3f1bae2159f14f65be90e6966c21c725 (diff) | |
download | busybox-523c1675a20cde6ae3c6a04a8d5c5285992a5fdc.zip busybox-523c1675a20cde6ae3c6a04a8d5c5285992a5fdc.tar.gz |
"Typo and/or thinko: scanning till the end of NUL terminated string
should check the byte pointed at not the pointer itself." -junkio@
-rw-r--r-- | miscutils/dc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/dc.c b/miscutils/dc.c index 5e367fe..451423c 100644 --- a/miscutils/dc.c +++ b/miscutils/dc.c @@ -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; |