Mercurial > pidgin.yaz
diff src/util.c @ 1195:0af0a11af61e
[gaim-migrate @ 1205]
Fixes Fixes fixes :)
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Mon, 04 Dec 2000 07:58:38 +0000 |
parents | 4fd0d35826fe |
children | ecdba708acc1 |
line wrap: on
line diff
--- a/src/util.c Mon Dec 04 07:13:31 2000 +0000 +++ b/src/util.c Mon Dec 04 07:58:38 2000 +0000 @@ -1235,7 +1235,7 @@ void strncpy_withhtml(gchar *dest, const gchar *src, size_t destsize) { - gchar *sp = src, *dp = dest; + gchar *sp = g_strdup(src), *dp = dest; while (dp < dest+destsize) { if (*sp == '\n' && dp < dest+destsize-4) { @@ -1244,4 +1244,6 @@ } else *dp++ = *sp++; } + + g_free(sp); }