From: Todd C. Miller Date: Tue, 26 May 2015 20:14:06 +0000 (-0600) Subject: Fix sudo_strnlen() prototype. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11840308c4d9b543eab42592aa1b311e106b47f8;p=sudo Fix sudo_strnlen() prototype. --- 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 */