Mercurial > pidgin.yaz
comparison src/server.c @ 2108:e6d42ea38914
[gaim-migrate @ 2118]
this may be important.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 02 Aug 2001 03:04:23 +0000 |
parents | f3a162033356 |
children | 56c4382f2909 |
comparison
equal
deleted
inserted
replaced
2107:f3a162033356 | 2108:e6d42ea38914 |
---|---|
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_malloc(MAX(strlen(message), BUF_LONG)); | 410 buffy = g_malloc(MAX(strlen(message) + 1, BUF_LONG)); |
411 strcpy(buffy, message); | 411 strcpy(buffy, message); |
412 angel = g_strdup(name); | 412 angel = g_strdup(name); |
413 plugin_return = plugin_event(event_im_recv, gc, &angel, &buffy, 0); | 413 plugin_return = plugin_event(event_im_recv, gc, &angel, &buffy, 0); |
414 | 414 |
415 if (!buffy || !angel || plugin_return) { | 415 if (!buffy || !angel || plugin_return) { |