aboutsummaryrefslogtreecommitdiff
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
parente7bdfccb3f1bae2159f14f65be90e6966c21c725 (diff)
downloadbusybox-w32-523c1675a20cde6ae3c6a04a8d5c5285992a5fdc.tar.gz
busybox-w32-523c1675a20cde6ae3c6a04a8d5c5285992a5fdc.tar.bz2
busybox-w32-523c1675a20cde6ae3c6a04a8d5c5285992a5fdc.zip
"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.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)
168 while (isspace(*current)) { current++; } 168 while (isspace(*current)) { current++; }
169 if (*current != 0) { 169 if (*current != 0) {
170 start = current; 170 start = current;
171 while (!isspace(*current) && current != 0) { current++; } 171 while (!isspace(*current) && *current != 0) { current++; }
172 *buffer = current; 172 *buffer = current;
173 } 173 }
174 return start; 174 return start;