From a223c042d48601381e8045ab13fb9ab3396a3545 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Sun, 13 Jul 2025 10:47:04 +0200 Subject: [PATCH] Reformat wcpncpy in vg_replace_strmem.c --- 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 71f15c85f..6fed7a2f2 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) -- 2.47.2