# HG changeset patch # User Eric Warmenhoven # Date 996716435 0 # Node ID f3a1620333568713f2de2b61b39822f9b0e40b5b # Parent efb39c151cf78e8aa9028e347cd78214d6b9de5d [gaim-migrate @ 2117] i feel the earth move under my feet committer: Tailor Script diff -r efb39c151cf7 -r f3a162033356 src/server.c --- a/src/server.c Thu Aug 02 01:12:41 2001 +0000 +++ b/src/server.c Thu Aug 02 01:40:35 2001 +0000 @@ -407,7 +407,8 @@ /* 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_strdup(message); + buffy = g_malloc(MAX(strlen(message), BUF_LONG)); + strcpy(buffy, message); angel = g_strdup(name); plugin_return = plugin_event(event_im_recv, gc, &angel, &buffy, 0);