From: Glenn L McGrath Date: Thu, 28 Aug 2003 22:12:53 +0000 (-0000) Subject: "Typo and/or thinko: scanning till the end of NUL terminated string X-Git-Tag: 1_00_pre3~58 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=523c1675a20cde6ae3c6a04a8d5c5285992a5fdc;p=oweals%2Fbusybox.git "Typo and/or thinko: scanning till the end of NUL terminated string should check the byte pointed at not the pointer itself." -junkio@ --- diff --git a/miscutils/dc.c b/miscutils/dc.c index 5e367fe68..451423c62 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;