aboutsummaryrefslogtreecommitdiff
path: root/coreutils/cal.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-06-15 14:37:46 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-06-15 14:37:46 +0000
commit3fe53908f4dd926f79f0d2a596b0e974c8dd17ae (patch)
treee3e9cf76cb337cb24d4ab853c2e99feaa08e4712 /coreutils/cal.c
parent3922e7117a2620b41641d4c2f638ba349921eb02 (diff)
downloadbusybox-w32-3fe53908f4dd926f79f0d2a596b0e974c8dd17ae.tar.gz
busybox-w32-3fe53908f4dd926f79f0d2a596b0e974c8dd17ae.tar.bz2
busybox-w32-3fe53908f4dd926f79f0d2a596b0e974c8dd17ae.zip
Fix a potential macro expansion problem... isspace can be
a macro causing a double decrement... git-svn-id: svn://busybox.net/trunk/busybox@4895 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/cal.c')
-rw-r--r--coreutils/cal.c2
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;