one of those mornings... (was [patch] for string2.h)

Ben Collins bcollins@debian.org
Tue Jan 29 07:18:00 GMT 2002


So here's the actual patch.

-- 
 .----------=======-=-======-=========-----------=====------------=-=-----.
/       Ben Collins    --    Debian GNU/Linux    --    WatchGuard.com      \
`          bcollins@debian.org   --   Ben.Collins@watchguard.com           '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'
-------------- next part --------------
--- string/bits/string2.h	2002/01/29 04:05:17	1.64.2.2
+++ string/bits/string2.h	2002/01/29 15:04:54
@@ -202,7 +202,7 @@
 #    define __mempcpy(dest, src, n) \
   (__extension__ (__builtin_constant_p (src) && __builtin_constant_p (n)      \
 		  && __string2_1bptr_p (src) && n <= 8			      \
-		  ? __builtin_memcpy (dest, src, n) + n			      \
+		  ? __builtin_memcpy (dest, src, n) + (n)		      \
 		  : __mempcpy (dest, src, n)))
 #   else
 #    define __mempcpy(dest, src, n) \


More information about the Libc-alpha mailing list