From c4c5fd41124f38a5afee02b8f604ddc21d3b199a Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 30 Dec 2025 11:32:19 +0100 Subject: Change __access into __fortify_access to fix potential conflicts --- include/strings.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/strings.h') diff --git a/include/strings.h b/include/strings.h index 3b6b765..6a17ca3 100644 --- a/include/strings.h +++ b/include/strings.h @@ -31,8 +31,8 @@ extern "C" { || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700) #undef bcopy #undef bzero -__access(write_only, 2, 3) -__access(read_only, 1, 3) +__fortify_access(write_only, 2, 3) +__fortify_access(read_only, 1, 3) _FORTIFY_FN(bcopy) void bcopy(const void * _FORTIFY_POS0 __s, void * _FORTIFY_POS0 __d, size_t __n) { @@ -44,7 +44,7 @@ _FORTIFY_FN(bcopy) void bcopy(const void * _FORTIFY_POS0 __s, return __orig_bcopy(__s, __d, __n); } -__access(write_only, 1, 2) +__fortify_access(write_only, 1, 2) _FORTIFY_FN(bzero) void bzero(void * _FORTIFY_POS0 __s, size_t __n) { size_t __b = __bos(__s, 0); -- cgit v1.3