aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/examples/keygen-html/src/curve25519_generate.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-06-06 00:05:47 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-06 00:05:58 +0200
commitbb1f9a5e944c86919b1e6f330002d4475f18add9 (patch)
treeeb9855bc0c38f165794652be9c73e91d14e204ae /contrib/examples/keygen-html/src/curve25519_generate.c
parentwg-quick: android: change name of intent (diff)
downloadwireguard-monolithic-historical-bb1f9a5e944c86919b1e6f330002d4475f18add9.tar.xz
wireguard-monolithic-historical-bb1f9a5e944c86919b1e6f330002d4475f18add9.zip
tools: encoding: add missing static array constraints
Diffstat (limited to '')
-rw-r--r--contrib/examples/keygen-html/src/curve25519_generate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/examples/keygen-html/src/curve25519_generate.c b/contrib/examples/keygen-html/src/curve25519_generate.c
index fc47575..3b560a5 100644
--- a/contrib/examples/keygen-html/src/curve25519_generate.c
+++ b/contrib/examples/keygen-html/src/curve25519_generate.c
@@ -72,7 +72,7 @@ EMSCRIPTEN_KEEPALIVE void curve25519_generate_private(u8 private[static 32])
normalize_secret(private);
}
-static inline void encode_base64(char dest[4], const u8 src[3])
+static inline void encode_base64(char dest[static 4], const u8 src[static 3])
{
const u8 input[] = { (src[0] >> 2) & 63, ((src[0] << 4) | (src[1] >> 4)) & 63, ((src[1] << 2) | (src[2] >> 6)) & 63, src[2] & 63 };