From: Paul F. <pa...@so...> - 2025-07-13 08:48:02
|
https://sourceware.org/cgit/valgrind/commit/?id=a223c042d48601381e8045ab13fb9ab3396a3545 commit a223c042d48601381e8045ab13fb9ab3396a3545 Author: Paul Floyd <pj...@wa...> Date: Sun Jul 13 10:47:04 2025 +0200 Reformat wcpncpy in vg_replace_strmem.c Diff: --- shared/vg_replace_strmem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/vg_replace_strmem.c b/shared/vg_replace_strmem.c index 71f15c85fb..6fed7a2f21 100644 --- a/shared/vg_replace_strmem.c +++ b/shared/vg_replace_strmem.c @@ -2386,9 +2386,9 @@ static inline void my_exit ( int x ) /*---------------------- wcpncpy ----------------------*/ - // This is a wchar_t equivalent to strncpy. We don't - // have wchar_t available here, but in the GNU C Library - // wchar_t is always 32 bits wide. + // This is a wchar_t equivalent to strncpy. We don't + // have wchar_t available here, but in the GNU C Library + // wchar_t is always 32 bits wide. #define WCPNCPY(soname, fnname) \ Int* VG_REPLACE_FUNCTION_EZU(20500,soname,fnname) \ @@ -2420,7 +2420,7 @@ static inline void my_exit ( int x ) *dst++ = 0; \ } \ \ - return dst_orig + (src - src_orig); \ + return dst_orig + (src - src_orig); \ } #if defined(VGO_linux) || defined(VGO_freebsd) || defined(VGO_solaris) |