OSDN Git Service
(root)
/
android-x86
/
external-busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7d0b41
)
Fix a potential macro expansion problem... isspace can be
author
Eric Andersen
<andersen@codepoet.org>
Sat, 15 Jun 2002 14:37:46 +0000
(14:37 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Sat, 15 Jun 2002 14:37:46 +0000
(14:37 -0000)
a macro causing a double decrement...
coreutils/cal.c
patch
|
blob
|
history
diff --git
a/coreutils/cal.c
b/coreutils/cal.c
index
f6578bf
..
3ccd3ff
100644
(file)
--- a/
coreutils/cal.c
+++ b/
coreutils/cal.c
@@
-372,7
+372,7
@@
void trim_trailing_spaces(char *s)
for (p = s; *p; ++p)
continue;
- while (p > s &&
isspace(*--p
))
+ while (p > s &&
(--p, isspace(*p)
))
continue;
if (p > s)
++p;