From: Guus Sliepen Date: Sun, 9 Nov 2025 16:05:11 +0000 (+0100) Subject: Avoid compiler warnings from arrays initialized by strings X-Git-Url: https://www.tinc-vpn.org/git/?a=commitdiff_plain;h=2df3471487dc0f9d7440eca8132757b5642be4d8;p=tinc Avoid compiler warnings from arrays initialized by strings --- diff --git a/src/chacha-poly1305/chacha.c b/src/chacha-poly1305/chacha.c index 696f44a5..54d37085 100644 --- a/src/chacha-poly1305/chacha.c +++ b/src/chacha-poly1305/chacha.c @@ -44,8 +44,8 @@ typedef struct chacha_ctx chacha_ctx; a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \ c = PLUS(c,d); b = ROTATE(XOR(b,c), 7); -static const char sigma[16] = "expand 32-byte k"; -static const char tau[16] = "expand 16-byte k"; +static const char sigma[17] = "expand 32-byte k"; +static const char tau[17] = "expand 16-byte k"; void chacha_keysetup(chacha_ctx *x, const uint8_t *k, uint32_t kbits) { const char *constants;