Mercurial > pidgin.yaz
comparison src/server.c @ 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 |
comparison
equal
deleted
inserted
replaced
2106:efb39c151cf7 | 2107:f3a162033356 |
---|---|
405 new_conv = 1; | 405 new_conv = 1; |
406 | 406 |
407 /* plugin stuff. we pass a char ** but we don't want to pass what's been given us | 407 /* plugin stuff. we pass a char ** but we don't want to pass what's been given us |
408 * by the prpls. so we create temp holders and pass those instead. it's basically | 408 * by the prpls. so we create temp holders and pass those instead. it's basically |
409 * just to avoid segfaults. */ | 409 * just to avoid segfaults. */ |
410 buffy = g_strdup(message); | 410 buffy = g_malloc(MAX(strlen(message), BUF_LONG)); |
411 strcpy(buffy, message); | |
411 angel = g_strdup(name); | 412 angel = g_strdup(name); |
412 plugin_return = plugin_event(event_im_recv, gc, &angel, &buffy, 0); | 413 plugin_return = plugin_event(event_im_recv, gc, &angel, &buffy, 0); |
413 | 414 |
414 if (!buffy || !angel || plugin_return) { | 415 if (!buffy || !angel || plugin_return) { |
415 if (buffy) | 416 if (buffy) |