From cf3b92233edaa90a504b07625972ea746271e9bb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 20 Nov 2026 16:56:47 +0100 Subject: Terminate when display server terminates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- types-message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'types-message.c') 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, -- cgit v1.3.1