diff src/util.c @ 845:647b110f7a1a

[gaim-migrate @ 855] yay committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 06 Sep 2000 20:29:31 +0000
parents 97f1ae636ed7
children 4b05985bae5e
line wrap: on
line diff
--- a/src/util.c	Wed Sep 06 19:51:51 2000 +0000
+++ b/src/util.c	Wed Sep 06 20:29:31 2000 +0000
@@ -121,7 +121,7 @@
 gint linkify_text(char *text)
 {
         char *c, *t;
-        char cpy[BUF_LONG];
+        char *cpy = g_malloc(strlen(text) * 2 + 1);
         char url_buf[512];
         int cnt=0;
         /* Assumes you have a buffer able to cary at least BUF_LEN * 2 bytes */
@@ -305,6 +305,7 @@
 
         }
         text[cnt]=0;
+	g_free(cpy);
         return cnt; 
 }