From f9652c80ae06efdb9ddb35b6df96bcd44564136a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 17 Apr 1997 23:30:13 +0000 Subject: [PATCH] (memset_space): Increment pointer. --- time/strftime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/time/strftime.c b/time/strftime.c index 690cf2af0ed..898bd6c98c5 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) \ -- 2.47.2