aboutsummaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-01-29 19:07:57 +0000
committerUlrich Drepper <drepper@redhat.com>2002-01-29 19:07:57 +0000
commit9d7810d8c509258fe776a2b7f51aee1375d660af (patch)
tree6768592ed7a54c28c8b3a32c38949e7f47f8dbaa /string
parent207b66ceeba9d6035037f120a03df437ce5ab3ea (diff)
downloadglibc-9d7810d8c509258fe776a2b7f51aee1375d660af.zip
glibc-9d7810d8c509258fe776a2b7f51aee1375d660af.tar.gz
glibc-9d7810d8c509258fe776a2b7f51aee1375d660af.tar.bz2
Update.
2002-01-29 Ben Collins <bcollins@debian.org> * string/bits/string2.h (__mempcpy): Protect size arg for addition when using __builtin_memcpy.
Diffstat (limited to 'string')
-rw-r--r--string/bits/string2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/string/bits/string2.h b/string/bits/string2.h
index 6c56c63..da168fa 100644
--- a/string/bits/string2.h
+++ b/string/bits/string2.h
@@ -202,7 +202,7 @@ __STRING2_COPY_TYPE (8);
# 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) \