From: Matthias Clasen Date: Tue, 5 Jan 2010 23:16:37 +0000 (-0500) Subject: Fix an off-by-one error X-Git-Tag: 2.23.2~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6cee86a3efc98333282218f8eb1e0149a7cd703d;p=platform%2Fupstream%2Fglib.git Fix an off-by-one error Reported by Steve Grubb. --- 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;