Mercurial > pidgin.yaz
changeset 13101:094d4b49e1c9
[gaim-migrate @ 15463]
I still hate static buffers.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 02 Feb 2006 19:17:49 +0000 |
parents | b0cbc4a3675d |
children | 5828d42e8684 |
files | src/gtkutils.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkutils.c Thu Feb 02 19:17:01 2006 +0000 +++ b/src/gtkutils.c Thu Feb 02 19:17:49 2006 +0000 @@ -1590,15 +1590,16 @@ overlay_status_onto_icon(GdkPixbuf *pixbuf, GaimStatusPrimitive primitive) { const char *type_name; - char basename[256]; + char *basename; char *filename; GdkPixbuf *emblem; type_name = gaim_primitive_get_id_from_type(primitive); - g_snprintf(basename, sizeof(basename), "%s.png", type_name); + basename = g_strdup_printf("%s.png", type_name); filename = g_build_filename(DATADIR, "pixmaps", "gaim", "status", "default", basename, NULL); + g_free(basename); emblem = gdk_pixbuf_new_from_file(filename, NULL); g_free(filename);