Mercurial > pidgin
changeset 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 | 0d11fd498068 |
children | eee309c0de93 |
files | src/util.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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; }