From 83d529fba1f02bd2508181cfea91df63285a5cc3 Mon Sep 17 00:00:00 2001 From: Urban Wallasch Date: Mon, 28 Oct 2019 21:44:15 +0100 Subject: [PATCH] * str: missing const --- str/str.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/str/str.h b/str/str.h index 382a9b1..a9ad4fa 100644 --- a/str/str.h +++ b/str/str.h @@ -404,7 +404,7 @@ static inline char *str_tolower(char *s) { * or maxlen if there is no null byte ('\0') among the first maxlen * characters in string s. */ -static inline size_t str_nlen(char *s, size_t maxlen) { +static inline size_t str_nlen(const char *s, size_t maxlen) { size_t n; for (n = 0; n < maxlen && s[n]; ++n) ; -- 2.30.2