diff options
| author | Mattias Andrée <m@maandree.se> | 2026-11-20 16:56:47 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-11-20 16:56:47 +0100 |
| commit | cf3b92233edaa90a504b07625972ea746271e9bb (patch) | |
| tree | 4ef72b60b18266de799bc8394a91f2ed0b84293b /types-message.c | |
| parent | fix doc text (diff) | |
| download | coopgammad-1.3.4.tar.gz coopgammad-1.3.4.tar.bz2 coopgammad-1.3.4.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
| -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, |
