aboutsummaryrefslogtreecommitdiff
path: root/miscutils/dc.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-08-28 22:12:53 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-08-28 22:12:53 +0000
commit523c1675a20cde6ae3c6a04a8d5c5285992a5fdc (patch)
treec233697a13ac14591cfdacc12d4aa32c0c9b6849 /miscutils/dc.c
parente7bdfccb3f1bae2159f14f65be90e6966c21c725 (diff)
downloadbusybox-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@
Diffstat (limited to 'miscutils/dc.c')
-rw-r--r--miscutils/dc.c2
1 files changed, 1 insertions, 1 deletions
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;