# HG changeset patch # User Eric Warmenhoven # Date 996721463 0 # Node ID e6d42ea389146dafa438b423e71dd9de7936b7ed # Parent f3a1620333568713f2de2b61b39822f9b0e40b5b [gaim-migrate @ 2118] this may be important. committer: Tailor Script diff -r f3a162033356 -r e6d42ea38914 src/server.c --- 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);