--- 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);