commit: 4fcf1a40c1d1129af9f447ad02c8397413865864
parent 80ce8e179c38661c772c92d5567e51bb9ea2be21
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 1 Sep 2024 16:22:48 +0200
cmd/base64: b64_encmap is ro anyway so * instead of []
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/cmd/base64.c b/cmd/base64.c
@@ -14,9 +14,8 @@
#include <string.h> /* strerror(), strncmp() */
#include <unistd.h> /* read(), write(), close(), getopt(), opt* */
-// 64(26+26+10+2)
-static const char b64_encmap[64] =
- "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
+// 64(26+26+10+2) + NULL
+static const char *b64_encmap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
static size_t c_out = 0;
// 76 is lowest of all base64 related RFCs
static long wrap_nl = 76;