]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(memset_space): Increment pointer.
authorUlrich Drepper <drepper@redhat.com>
Thu, 17 Apr 1997 23:30:13 +0000 (23:30 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 17 Apr 1997 23:30:13 +0000 (23:30 +0000)
time/strftime.c

index 690cf2af0ed6a65cb331fc3a9583ec13b6827526..898bd6c98c5f878cbc4d522f61c4da3bcfc8626f 100644 (file)
@@ -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) \