# HG changeset patch # User Eric Warmenhoven # Date 992540005 0 # Node ID 9a2e3902658c5bc15daf31b12c56eb7b8fd81f7d # Parent 0d11fd4980688e547313ccbd5c0e72edcdeaed4b [gaim-migrate @ 2026] i hate cc committer: Tailor Script diff -r 0d11fd498068 -r 9a2e3902658c src/util.c --- a/src/util.c Thu Jun 14 04:51:25 2001 +0000 +++ b/src/util.c Thu Jun 14 17:33:25 2001 +0000 @@ -1073,7 +1073,7 @@ char *stylize(gchar *text, int length) { gchar *buf; - char tmp[length]; + char *tmp = g_malloc(length); buf = g_malloc(length); g_snprintf(buf, length, "%s", text); @@ -1120,6 +1120,7 @@ strcpy(buf, tmp); } + g_free(tmp); return buf; }