From 112ad3d591caa40880f9ab236e19ca7d459b91f5 Mon Sep 17 00:00:00 2001 From: Loic Le Page Date: Wed, 19 Jan 2022 19:05:57 +0100 Subject: [PATCH] Fix too small array definition in glib/gconvert.c (no room for the '\0') --- glib/gconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gconvert.c b/glib/gconvert.c index cb0dcaa01..e51537881 100644 --- a/glib/gconvert.c +++ b/glib/gconvert.c @@ -1420,7 +1420,7 @@ static const guchar acceptable[96] = { 0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x20,0x20,0x20,0x3F,0x20 }; -static const gchar hex[16] = "0123456789ABCDEF"; +static const gchar hex[] = "0123456789ABCDEF"; /* Note: This escape function works on file: URIs, but if you want to * escape something else, please read RFC-2396 */