changeset 1197:ecdba708acc1

[gaim-migrate @ 1207] Im a moron committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Mon, 04 Dec 2000 16:25:14 +0000
parents 21a26b44a3fc
children c5a0ee69dc7e
files src/util.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Mon Dec 04 08:21:29 2000 +0000
+++ b/src/util.c	Mon Dec 04 16:25:14 2000 +0000
@@ -1235,7 +1235,7 @@
 
 void strncpy_withhtml(gchar *dest, const gchar *src, size_t destsize)
 {
-	gchar *sp = g_strdup(src), *dp = dest;
+	gchar *sp =src, *dp = dest;
 
 	while (dp < dest+destsize) {
                 if (*sp == '\n' && dp < dest+destsize-4) {
@@ -1244,6 +1244,4 @@
                 }
                 else *dp++ = *sp++;
 	}
-
-	g_free(sp);
 }