From: Urban Wallasch Date: Mon, 28 Oct 2019 20:44:15 +0000 (+0100) Subject: * str: missing const X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=83d529fba1f02bd2508181cfea91df63285a5cc3;p=oddbits.git * str: missing const --- 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) ;