diff --git a/libwget/base64.c b/libwget/base64.c index 23fcaf98..00f50260 100644 --- a/libwget/base64.c +++ b/libwget/base64.c @@ -170,9 +170,9 @@ char *wget_base64_decode_alloc(const char *src, size_t n, size_t *outlen) static size_t base64_encode(char *dst, const char *src, size_t n, int flags) { - static const char base64unsafe[64] = + static const char base64unsafe[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; - static const char base64urlsafe[64] = + static const char base64urlsafe[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; const char *base64 = (flags & WGET_BASE64_URLENCODE) ? base64urlsafe : base64unsafe; diff --git a/libwget/buffer_printf.c b/libwget/buffer_printf.c index f9d05d7c..059fb12e 100644 --- a/libwget/buffer_printf.c +++ b/libwget/buffer_printf.c @@ -233,7 +233,7 @@ static void convert_dec(wget_buffer *buf, unsigned int flags, int field_width, i static void convert_pointer(wget_buffer *buf, void *pointer) { - static const char HEX[16] = "0123456789abcdef"; + static const char HEX[] = "0123456789abcdef"; char str[32]; // long enough to hold hexadecimal pointer char *dst; int length;