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 */