diff src/util.c @ 2016:9a2e3902658c

[gaim-migrate @ 2026] i hate cc committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 14 Jun 2001 17:33:25 +0000
parents 008a4cc4a82c
children 859e9c2c5813
line wrap: on
line diff
--- 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;
 }