aboutsummaryrefslogtreecommitdiff
path: root/time/strftime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/strftime.c')
-rw-r--r--time/strftime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/time/strftime.c b/time/strftime.c
index 690cf2af0e..898bd6c98c 100644
--- a/time/strftime.c
+++ b/time/strftime.c
@@ -179,7 +179,7 @@ static const char spaces[16] = " ";
# define memset_space(P, Len) \
do { \
int _len = (Len); \
- \
+ \
do \
{ \
int _this = _len > 16 ? 16 : _len; \
@@ -190,7 +190,7 @@ static const char spaces[16] = " ";
while (_len > 0); \
} while (0)
#else
-# define memset_space(P, Len) memset ((P), ' ', (Len))
+# define memset_space(P, Len) (memset ((P), ' ', (Len)), (P) += (Len))
#endif
#define add(n, f) \