diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-08-28 22:12:53 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-08-28 22:12:53 +0000 |
commit | 9a6db71f8b2125258142a0d0459db2ada107f79c (patch) | |
tree | c233697a13ac14591cfdacc12d4aa32c0c9b6849 /miscutils/dc.c | |
parent | a4d0433e41700244a4c2e5d4c84f27a7a3526c08 (diff) | |
download | busybox-w32-9a6db71f8b2125258142a0d0459db2ada107f79c.tar.gz busybox-w32-9a6db71f8b2125258142a0d0459db2ada107f79c.tar.bz2 busybox-w32-9a6db71f8b2125258142a0d0459db2ada107f79c.zip |
"Typo and/or thinko: scanning till the end of NUL terminated string
should check the byte pointed at not the pointer itself." -junkio@
git-svn-id: svn://busybox.net/trunk/busybox@7276 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'miscutils/dc.c')
-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 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; |