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




commit 6888f9e17e29a00f420a668822d9e3d0909df5ca
Author: Loic Le Page <llepage fluendo com>
Date:   Wed Jan 19 19:05:34 2022 +0100

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

 gio/gdummyfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gdummyfile.c b/gio/gdummyfile.c
index 3bf5ba9205..cfada32e80 100644
--- a/gio/gdummyfile.c
+++ b/gio/gdummyfile.c
@@ -683,7 +683,7 @@ g_string_append_encoded (GString    *string,
                         const char *reserved_chars_allowed)
 {
   unsigned char c;
-  static const gchar hex[16] = "0123456789ABCDEF";
+  static const gchar hex[] = "0123456789ABCDEF";
 
   while ((c = *encoded) != 0)
     {


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