aboutsummaryrefslogtreecommitdiffstats
path: root/types-message.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-11-20 16:56:47 +0100
committerMattias Andrée <m@maandree.se>2026-11-20 16:56:47 +0100
commitcf3b92233edaa90a504b07625972ea746271e9bb (patch)
tree4ef72b60b18266de799bc8394a91f2ed0b84293b /types-message.c
parentfix doc text (diff)
downloadcoopgammad-1.3.4.tar.gz
coopgammad-1.3.4.tar.bz2
coopgammad-1.3.4.tar.xz
Terminate when display server terminatesHEAD1.3.4master
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--types-message.c2
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,