changeset 8616:aa815d1a996d

[gaim-migrate @ 9367] yahoo_decode bugfix committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Thu, 08 Apr 2004 04:22:28 +0000
parents f26e7dc1805e
children 9bd849b376b4
files src/protocols/yahoo/yahoo.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Thu Apr 08 02:30:30 2004 +0000
+++ b/src/protocols/yahoo/yahoo.c	Thu Apr 08 04:22:28 2004 +0000
@@ -902,16 +902,16 @@
 	char *converted;
 	char *n, *new;
 	const char *end, *p;
-	int i;
+	int i, k;
 
 	n = new = g_malloc(strlen (text) + 1);
 	end = text + strlen(text);
 
 	for (p = text; p < end; p++, n++) {
 		if (*p == '\\') {
-			sscanf(p + 1, "%3o\n", &i);
+			sscanf(p + 1, "%3o%n\n", &i, &k);
 			*n = i;
-			p += 3;
+			p += k - 1;
 		}
 		else
 			*n = *p;