/soc/2013/ashmew2/filetransferX: f26666272701: Fix for Yahoo FT

Ashish Gupta ashmew2 at gmail.com
Sun Jun 16 16:13:18 EDT 2013


Changeset: f26666272701fc3911dba5e10b5e05354d625a27
Author:	 Ashish Gupta <ashmew2 at gmail.com>
Date:	 2013-06-17 01:39 +0530
Branch:	 filetransferX
URL: https://hg.pidgin.im/soc/2013/ashmew2/filetransferX/rev/f26666272701

Description:

Fix for Yahoo FT

diffstat:

 .hgignore                                  |  6 ++++++
 libpurple/protocols/yahoo/yahoo_filexfer.c |  8 ++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diffs (38 lines):

diff --git a/.hgignore b/.hgignore
--- a/.hgignore
+++ b/.hgignore
@@ -42,6 +42,7 @@ config.status
 config.sub
 configure$
 depcomp
+doc/*
 doc/finch.1$
 doc/html
 doc/pidgin.1$
@@ -112,3 +113,8 @@ po/pidgin.pot
 po/stamp-it
 stamp-h1
 win32-install-dir(\.release)?
+\#.*\#
+.*\.patch
+.*.json
+.*.yml
+test-driver
diff --git a/libpurple/protocols/yahoo/yahoo_filexfer.c b/libpurple/protocols/yahoo/yahoo_filexfer.c
--- a/libpurple/protocols/yahoo/yahoo_filexfer.c
+++ b/libpurple/protocols/yahoo/yahoo_filexfer.c
@@ -961,10 +961,10 @@ static gchar* yahoo_xfer_new_xfer_id(voi
 {
 	gchar *ans;
 	int i,j;
-	ans = g_strnfill(24, ' ');
-	ans[23] = '$';
-	ans[22] = '$';
-	for(i = 0; i < 22; i++)
+	ans = g_strnfill(44, ' ');
+	ans[43] = '=';
+
+	for(i = 0; i < 43; i++)
 	{
 		j = g_random_int_range (0,61);
 		if(j < 26)



More information about the Commits mailing list