changeset 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 fae1d64b0278
children 4b05985bae5e
files src/buddy_chat.c src/util.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy_chat.c	Wed Sep 06 19:51:51 2000 +0000
+++ b/src/buddy_chat.c	Wed Sep 06 20:29:31 2000 +0000
@@ -764,7 +764,7 @@
 	GtkWidget *parent = button->parent;
 	gtk_widget_destroy(button);
 	button = picture_button2(win, text, xpm, dispstyle);
-	gtk_box_pack_start(GTK_BOX(parent), button, TRUE, TRUE, 5);
+	gtk_box_pack_start(GTK_BOX(parent), button, dispstyle, dispstyle, 5);
 	gtk_widget_show(button);
 	return button;
 }
--- 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; 
 }