bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] nstrftime: wmemmove → __wmemmove in glibc part


From: Paul Eggert
Subject: [PATCH] nstrftime: wmemmove → __wmemmove in glibc part
Date: Tue, 23 May 2023 12:57:30 -0700

https://sourceware.org/pipermail/libc-alpha/2023-May/148435.html
* lib/nstrftime.c (__strftime_internal) [COMPILE_WIDE]:
Use __wmemmove, not wmemmove, to keep in better sync with draft glibc.
---
 ChangeLog       | 7 +++++++
 lib/nstrftime.c | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index dec17652c4..d4f6d173ac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-05-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       nstrftime: wmemmove → __wmemmove in glibc part
+       https://sourceware.org/pipermail/libc-alpha/2023-May/148435.html
+       * lib/nstrftime.c (__strftime_internal) [COMPILE_WIDE]:
+       Use __wmemmove, not wmemmove, to keep in better sync with draft glibc.
+
 2023-05-22  Bruno Haible  <bruno@clisp.org>
 
        git-merge-changelog: Code style changes.
diff --git a/lib/nstrftime.c b/lib/nstrftime.c
index 869c97f67d..c4bef575fc 100644
--- a/lib/nstrftime.c
+++ b/lib/nstrftime.c
@@ -1392,7 +1392,7 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG 
(size_t maxsize)
                 if (len < w)
                   {
                     size_t delta = w - len;
-                    wmemmove (p + delta, p, len);
+                    __wmemmove (p + delta, p, len);
                     wchar_t wc = pad == L_('0') || pad == L_('+') ? L'0' : L' 
';
                     wmemset (p, wc, delta);
                   }
-- 
2.40.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]