aboutsummaryrefslogtreecommitdiff
path: root/string/bits/strings_fortified.h
diff options
context:
space:
mode:
Diffstat (limited to 'string/bits/strings_fortified.h')
-rw-r--r--string/bits/strings_fortified.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/string/bits/strings_fortified.h b/string/bits/strings_fortified.h
index d4091f4..7752faf 100644
--- a/string/bits/strings_fortified.h
+++ b/string/bits/strings_fortified.h
@@ -22,13 +22,15 @@
__fortify_function void
__NTH (bcopy (const void *__src, void *__dest, size_t __len))
{
- (void) __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest));
+ (void) __builtin___memmove_chk (__dest, __src, __len,
+ __glibc_objsize0 (__dest));
}
__fortify_function void
__NTH (bzero (void *__dest, size_t __len))
{
- (void) __builtin___memset_chk (__dest, '\0', __len, __bos0 (__dest));
+ (void) __builtin___memset_chk (__dest, '\0', __len,
+ __glibc_objsize0 (__dest));
}
#endif