Fix too small array definition in glib/guri.c (no room for the '\0')

This commit is contained in:
Loic Le Page 2022-01-19 19:06:11 +01:00 committed by Loïc Le Page
parent bdf1a0ba80
commit eb961b02d6

View File

@ -422,7 +422,7 @@ _uri_encoder (GString *out,
const gchar *reserved_chars_allowed,
gboolean allow_utf8)
{
static const gchar hex[16] = "0123456789ABCDEF";
static const gchar hex[] = "0123456789ABCDEF";
const guchar *p = start;
const guchar *end = p + length;