blob: 7813ce91f8a55ffe2ac8c0ba3a8c979d1787a045 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- gtk-themes/Crux/src/crux-pixmaps.c.orig Thu Oct 16 21:01:59 2003
+++ gtk-themes/Crux/src/crux-pixmaps.c Thu Oct 16 21:02:17 2003
@@ -340,9 +340,10 @@
{
GdkPixbuf *pixbuf;
size_t len = strlen (*path) + strlen (file) + 2;
- char *buf = alloca (len);
+ char *buf = g_malloc (len);
sprintf (buf, "%s/%s", *path, file);
pixbuf = gdk_pixbuf_new_from_file (buf, NULL);
+ g_free (buf);
if (pixbuf != 0)
return pixbuf;
path++;
|