diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-06-15 14:37:46 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-06-15 14:37:46 +0000 |
commit | b0fd2b06a32a0a8a70a65e1cacf70104afc83faa (patch) | |
tree | e3e9cf76cb337cb24d4ab853c2e99feaa08e4712 /coreutils/cal.c | |
parent | a7d0b41c08765f76dbb98022d15d51c6beffc4f3 (diff) | |
download | busybox-w32-b0fd2b06a32a0a8a70a65e1cacf70104afc83faa.tar.gz busybox-w32-b0fd2b06a32a0a8a70a65e1cacf70104afc83faa.tar.bz2 busybox-w32-b0fd2b06a32a0a8a70a65e1cacf70104afc83faa.zip |
Fix a potential macro expansion problem... isspace can be
a macro causing a double decrement...
Diffstat (limited to 'coreutils/cal.c')
-rw-r--r-- | coreutils/cal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/cal.c b/coreutils/cal.c index f6578bf43..3ccd3fff5 100644 --- a/coreutils/cal.c +++ b/coreutils/cal.c | |||
@@ -372,7 +372,7 @@ void trim_trailing_spaces(char *s) | |||
372 | 372 | ||
373 | for (p = s; *p; ++p) | 373 | for (p = s; *p; ++p) |
374 | continue; | 374 | continue; |
375 | while (p > s && isspace(*--p)) | 375 | while (p > s && (--p, isspace(*p))) |
376 | continue; | 376 | continue; |
377 | if (p > s) | 377 | if (p > s) |
378 | ++p; | 378 | ++p; |