From 2c17bdbd255e75f48753a1429589b3a17cde872a Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 12 May 2025 18:52:20 +0200 Subject: Bump actions/upload-pages-artifact from v1 to v3 --- .github/workflows/coverage.yaml | 2 +- include/string.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 28a2cd6..778aa6b 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -43,7 +43,7 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: # Upload entire repository path: './tests/coverage/' diff --git a/include/string.h b/include/string.h index 2e2b29c..be8229d 100644 --- a/include/string.h +++ b/include/string.h @@ -44,8 +44,13 @@ __fh_access(read_only, 2, 3) #if __has_builtin(__builtin_memcpy) __diagnose_as_builtin(__builtin_memcpy, 1, 2, 3) #endif +#if __STDC_VERSION__>=199901L _FORTIFY_FN(memcpy) void *memcpy(void * _FORTIFY_POS0 __od, const void * _FORTIFY_POS0 __os, size_t __n) +#else +_FORTIFY_FN(memcpy) void *memcpy(void *restrict _FORTIFY_POS0 __od, + const void *restrict _FORTIFY_POS0 __os, size_t __n) +#endif __error_if((__fh_bos(__od, 0) < __n), "'memcpy' called with `n` bigger than the size of `d`.") { #if __has_builtin(__builtin___memcpy_chk) && FORTIFY_USE_NATIVE_CHK -- cgit v1.3