summaryrefslogtreecommitdiff
path: root/net/gaim-openq/files/patch-src-im.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-10-16 17:49:19 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-10-16 17:49:19 +0000
commit962206742793e0e381c4db9776ae64931b65c085 (patch)
treed7210a557a55783e1bbb7ae6cf98e21895e41c53 /net/gaim-openq/files/patch-src-im.c
parent- New CPAN maintainer requests maintainership of the port as well (diff)
Add gaim-openq, a QQ-liked protocol plugin for Gaim.
PR: ports/72697 Submitted by: hamigua <hamigua@cuc.cn>
Notes
Notes: svn path=/head/; revision=119612
Diffstat (limited to 'net/gaim-openq/files/patch-src-im.c')
-rw-r--r--net/gaim-openq/files/patch-src-im.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/net/gaim-openq/files/patch-src-im.c b/net/gaim-openq/files/patch-src-im.c
new file mode 100644
index 000000000000..3855b2a6475a
--- /dev/null
+++ b/net/gaim-openq/files/patch-src-im.c
@@ -0,0 +1,28 @@
+--- src/im.c.orig Sat Oct 2 17:48:11 2004
++++ src/im.c Sat Oct 16 18:06:57 2004
+@@ -435,6 +435,8 @@
+ gchar *font_size = NULL, *font_color = NULL, *font_name = NULL, *tmp;
+ gboolean is_bold = FALSE, is_italic = FALSE, is_underline = FALSE;
+ const gchar *start, *end, *last;
++ guint font_name_len, tail_len;
++ guint8 *send_im_tail;
+
+ g_return_if_fail(gc != NULL && gc->proto_data != NULL);
+
+@@ -488,7 +490,6 @@
+ now = time(NULL);
+ md5 = _gen_session_md5(qd->uid, qd->session_key);
+
+- guint font_name_len, tail_len;
+ font_name_len = (font_name) ? strlen(font_name) : DEFAULT_FONT_NAME_LEN;
+ tail_len = font_name_len + QQ_SEND_IM_AFTER_MSG_HEADER_LEN + 1;
+
+@@ -530,7 +531,7 @@
+ bytes += create_packet_b(raw_data, &cursor, type);
+ //053- : msg ends with 0x00
+ bytes += create_packet_data(raw_data, &cursor, msg_filtered, msg_len);
+- guint8 *send_im_tail = qq_get_send_im_tail(font_color, font_size, font_name, is_bold,
++ send_im_tail = qq_get_send_im_tail(font_color, font_size, font_name, is_bold,
+ is_italic, is_underline, tail_len);
+ _qq_show_packet("QQ_MESG debug", send_im_tail, tail_len);
+ bytes += create_packet_data(raw_data, &cursor, (gchar *) send_im_tail, tail_len);