From 6cee86a3efc98333282218f8eb1e0149a7cd703d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 5 Jan 2010 18:16:37 -0500 Subject: [PATCH] Fix an off-by-one error Reported by Steve Grubb. --- gio/gcontenttype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gcontenttype.c b/gio/gcontenttype.c index 0a95e5bea..51f66537c 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;