diff options
Diffstat (limited to 'types-message.c')
| -rw-r--r-- | types-message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types-message.c b/types-message.c index de5644d..5c4cfcd 100644 --- a/types-message.c +++ b/types-message.c @@ -320,7 +320,7 @@ GCC_ONLY(__attribute__((__pure__, __nonnull__))) static int validate_header(const char *restrict header, size_t length) { - char *restrict p = memchr(header, ':', length * sizeof(char)); + const char *restrict p = memchr(header, ':', length * sizeof(char)); if (verify_utf8(header) < 0) { /* Either the string is not UTF-8, or your are under an UTF-8 attack, |
