projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7bdfcc
)
"Typo and/or thinko: scanning till the end of NUL terminated string
author
Glenn L McGrath
<bug1@ihug.co.nz>
Thu, 28 Aug 2003 22:12:53 +0000
(22:12 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Thu, 28 Aug 2003 22:12:53 +0000
(22:12 -0000)
should check the byte pointed at not the pointer itself." -junkio@
miscutils/dc.c
patch
|
blob
|
history
diff --git
a/miscutils/dc.c
b/miscutils/dc.c
index 5e367fe6889a3ebbb0f8b67b632b77226833a6b3..451423c62fa1fab5bca01b23716f625997f1e430 100644
(file)
--- 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;