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/strdup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/string/strdup.c') diff --git a/src/string/strdup.c b/src/string/strdup.c index 26362e2f..ecd671db 100644 --- a/src/string/strdup.c +++ b/src/string/strdup.c @@ -1,7 +1,6 @@ #include #include #include "_safety.h" -#undef strdup char * strdup(const char *s) { @@ -15,6 +14,8 @@ char * strdup(const char *s) return ret; } +__check_1(char *, 0, strdup, const char *) + /* XOPEN(400) POSIX(200809) -- cgit v1.2.1