Mercurial > pidgin
changeset 2107:f3a162033356
[gaim-migrate @ 2117]
i feel the earth
move
under my feet
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 02 Aug 2001 01:40:35 +0000 |
parents | efb39c151cf7 |
children | e6d42ea38914 |
files | src/server.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);