From 11840308c4d9b543eab42592aa1b311e106b47f8 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 26 May 2015 14:14:06 -0600 Subject: [PATCH] Fix sudo_strnlen() prototype. --- include/sudo_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sudo_compat.h b/include/sudo_compat.h index c5a7d4c42..4c573db2a 100644 --- a/include/sudo_compat.h +++ b/include/sudo_compat.h @@ -437,7 +437,7 @@ __dso_public char *sudo_strndup(const char *str, size_t maxlen); # define strndup(_a, _b) sudo_strndup((_a), (_b)) #endif /* HAVE_STRNDUP */ #ifndef HAVE_STRNLEN -__dso_public size_t sudo_strnlen(char *str, size_t maxlen); +__dso_public size_t sudo_strnlen(const char *str, size_t maxlen); # undef strnlen # define strnlen(_a, _b) sudo_strnlen((_a), (_b)) #endif /* HAVE_STRNLEN */ -- 2.40.0