diff src/conversation.c @ 391:be408b41c172

[gaim-migrate @ 401] Plugins got updated. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 12 Jun 2000 11:30:05 +0000
parents 5e16d37b48bf
children a330017b3aa4
line wrap: on
line diff
--- a/src/conversation.c	Mon Jun 12 08:11:26 2000 +0000
+++ b/src/conversation.c	Mon Jun 12 11:30:05 2000 +0000
@@ -473,18 +473,21 @@
 		GList *ca = callbacks;
 		struct gaim_callback *g;
 		void (*function)(char *, char **, void *);
+		char *buffy = g_strdup(buf);
 		while (ca) {
 			g = (struct gaim_callback *)(ca->data);
 			if (g->event == event_im_send && g->function != NULL) {
 				function = g->function;
-				(*function)(c->name, &buf, g->data);
+				(*function)(c->name, &buffy, g->data);
 			}
 			ca = ca->next;
 		}
-		if (buf == NULL) {
+		if (!buffy) {
 			g_free(buf2);
 			return;
 		}
+		g_snprintf(buf, BUF_LONG, "%s", buffy);
+		g_free(buffy);
 	}
 #endif