From: Paul Floyd Date: Sun, 13 Jul 2025 08:47:04 +0000 (+0200) Subject: Reformat wcpncpy in vg_replace_strmem.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a223c042d48601381e8045ab13fb9ab3396a3545;p=thirdparty%2Fvalgrind.git Reformat wcpncpy in vg_replace_strmem.c --- 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)