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/strerror.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/string/strerror.c') diff --git a/src/string/strerror.c b/src/string/strerror.c index 29742e34..910d7490 100644 --- a/src/string/strerror.c +++ b/src/string/strerror.c @@ -2,7 +2,6 @@ #include #include #include "_safety.h" -#undef strerror # define __LONGEST_STRERR 64 /* FIXME */ @@ -27,6 +26,8 @@ char * strerror(int errnum) return errstr; } +__check_1(char *, 0, strerror, int) + /*** converts the error number ARGUMENT(errnum) to an error message string. The string returned should not be modified, and may be overwritten by -- cgit v1.2.1