]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Reformat wcpncpy in vg_replace_strmem.c
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 13 Jul 2025 08:47:04 +0000 (10:47 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 13 Jul 2025 08:47:36 +0000 (10:47 +0200)
shared/vg_replace_strmem.c

index 71f15c85fb71fc05a1f8f91eb66e3156e19b6584..6fed7a2f215d074002a580d4a3b8adbb0cbada58 100644 (file)
@@ -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)