From f10737a4ee4a818acdc28fa2e32c85a74f47eb5c Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 31 Jan 2024 00:00:11 -0500 Subject: update to 1:1 checked functions --- src/string/strncat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/string/strncat.c') diff --git a/src/string/strncat.c b/src/string/strncat.c index 8a99f5b4..b455a36c 100644 --- a/src/string/strncat.c +++ b/src/string/strncat.c @@ -1,6 +1,5 @@ #include #include "_safety.h" -#undef strncat /** concatenate bounded string **/ @@ -30,6 +29,8 @@ char * strncat(char * restrict s1, const char * restrict s2, size_t n) return s1; } +__check_3(char *, 0, strncat, char * restrict, const char * restrict, size_t) + /*** appends a copy of the frist ARGUMENT(n) bytes of the string at ARGUMENT(s2) to the end of the string at ARGUMENT(s1). The first byte of ARGUMENT(s2) will -- cgit v1.2.1