changeset 2108:e6d42ea38914

[gaim-migrate @ 2118] this may be important. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 02 Aug 2001 03:04:23 +0000
parents f3a162033356
children 3110ea142888
files src/server.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/server.c	Thu Aug 02 01:40:35 2001 +0000
+++ b/src/server.c	Thu Aug 02 03:04:23 2001 +0000
@@ -407,7 +407,7 @@
 	/* plugin stuff. we pass a char ** but we don't want to pass what's been given us
 	 * by the prpls. so we create temp holders and pass those instead. it's basically
 	 * just to avoid segfaults. */
-	buffy = g_malloc(MAX(strlen(message), BUF_LONG));
+	buffy = g_malloc(MAX(strlen(message) + 1, BUF_LONG));
 	strcpy(buffy, message);
 	angel = g_strdup(name);
 	plugin_return = plugin_event(event_im_recv, gc, &angel, &buffy, 0);