From dcf4cae13394ed1cdffd70d8ad5bf599de477473 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 30 Aug 2005 17:09:41 +0000 Subject: - Unbreak it on 4.x PR: ports/85075 Submitted by: Matthew Luckie Approved by: maintainer --- net/gaim-openq/files/patch-src-send_file.c | 52 ++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 3 deletions(-) (limited to 'net/gaim-openq/files/patch-src-send_file.c') diff --git a/net/gaim-openq/files/patch-src-send_file.c b/net/gaim-openq/files/patch-src-send_file.c index 1d943229558c..e585f555e0b7 100644 --- a/net/gaim-openq/files/patch-src-send_file.c +++ b/net/gaim-openq/files/patch-src-send_file.c @@ -1,10 +1,56 @@ ---- src/send_file.c.orig Thu Dec 23 06:22:22 2004 -+++ src/send_file.c Wed Apr 20 13:16:55 2005 -@@ -22,6 +22,7 @@ +--- src/send_file.c.orig Thu Dec 23 18:22:22 2004 ++++ src/send_file.c Thu Aug 18 18:18:11 2005 +@@ -22,6 +22,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ ++#include +#include #include #include "send_file.h" +@@ -203,8 +205,8 @@ + info = (ft_info *) xfer->data; + + qq_xfer_close_file(xfer); +- if (info->dest_fp != NULL) { +- fclose(info->dest_fp); ++ if (info->un.dest_fp != NULL) { ++ fclose(info->un.dest_fp); + gaim_debug(GAIM_DEBUG_INFO, "QQ", "file closed\n"); + } + if (info->major_fd != 0) { +@@ -499,6 +501,8 @@ + guint8 *cursor, *raw_data; + gint packet_len, bytes; + ft_info *info; ++ guint16 minor_port; ++ guint32 real_ip; + + g_return_if_fail (gc != NULL && gc->proto_data != NULL); + qd = (qq_data *) gc->proto_data; +@@ -506,8 +510,6 @@ + + gaim_debug(GAIM_DEBUG_INFO, "QQ", "I've accepted the file transfer request from %d\n", to_uid); + _qq_xfer_init_socket(qd->xfer); +- guint16 minor_port; +- guint32 real_ip; + + packet_len = 79; + raw_data = g_newa (guint8, packet_len); +@@ -809,6 +811,7 @@ + GaimXfer *xfer; + gchar *sender_name; + ft_info *info; ++ gchar **fileinfo; + + g_return_if_fail (gc != NULL && data != NULL && data_len != 0); + qd = (qq_data *) gc->proto_data; +@@ -834,7 +837,6 @@ + GAIM_XFER_RECEIVE, + sender_name); + +- gchar **fileinfo; + fileinfo = g_strsplit(data + 81 + 12, "\x1f", 2); + g_return_if_fail (fileinfo != NULL && fileinfo[0] != NULL && fileinfo[1] != NULL); + gaim_xfer_set_filename(xfer, fileinfo[0]); -- cgit v1.2.3