[glib/glib-2-22] Fix an off-by-one error



commit 6a8828d40f07bef12c902cf271fd5b37b0be616c
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 5 18:16:37 2010 -0500

    Fix an off-by-one error
    
    Reported by Steve Grubb.
    (cherry picked from commit 6cee86a3efc98333282218f8eb1e0149a7cd703d)

 gio/gcontenttype.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gcontenttype.c b/gio/gcontenttype.c
index 0a95e5b..51f6653 100644
--- a/gio/gcontenttype.c
+++ b/gio/gcontenttype.c
@@ -748,7 +748,7 @@ g_content_type_get_icon (const char *type)
   char *mimetype_icon, *generic_mimetype_icon, *q;
   char *xdg_mimetype_icon, *legacy_mimetype_icon;
   char *xdg_mimetype_generic_icon;
-  char *icon_names[4];
+  char *icon_names[5];
   int n = 0;
   const char *p;
   GIcon *themed_icon;



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