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




commit eb961b02d6aeb30ca0b7b962cbf1afad37addfa5
Author: Loic Le Page <llepage fluendo com>
Date:   Wed Jan 19 19:06:11 2022 +0100

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

 glib/guri.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/guri.c b/glib/guri.c
index 5c2b35b8a..069060809 100644
--- a/glib/guri.c
+++ b/glib/guri.c
@@ -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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]