From: Eric W. <war...@us...> - 2001-10-03 09:48:36
|
Update of /cvsroot/gaim/gaim/src/protocols/zephyr In directory usw-pr-cvs1:/tmp/cvs-serv25541/src/protocols/zephyr Modified Files: zephyr.c Log Message: boo-yah! Index: zephyr.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/zephyr/zephyr.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- zephyr.c 2001/09/28 07:46:36 1.12 +++ zephyr.c 2001/10/03 09:48:33 1.13 @@ -373,11 +373,7 @@ away = TRUE; else away = FALSE; - len = MAX(BUF_LONG, strlen(buf2)); - buf = g_malloc(len + 1); - g_snprintf(buf, len + 1, "%s", buf2); - serv_got_im(zgc, notice.z_sender, buf, 0, time((time_t)NULL)); - g_free(buf); + serv_got_im(zgc, notice.z_sender, buf2, 0, time((time_t)NULL)); } else { zephyr_triple *zt1, *zt2; zt1 = new_triple(notice.z_class, notice.z_class_inst, @@ -386,16 +382,12 @@ if (!zt2) { /* we shouldn't be subscribed to this message. ignore. */ } else { - len = MAX(BUF_LONG, strlen(buf2)); - buf = g_malloc(len + 1); - g_snprintf(buf, len + 1, "%s", buf2); if (!zt2->open) { zt2->open = TRUE; serv_got_joined_chat(zgc, zt2->id, zt2->name); } serv_got_chat_in(zgc, zt2->id, notice.z_sender, FALSE, - buf, time((time_t)NULL)); - g_free(buf); + buf2, time((time_t)NULL)); } free_triple(zt1); } |