src/protocols/yahoo/yahoo.c

changeset 8616
def20c824c3a
parent 8591
ae42ad1cd127
child 8617
ee1d90584422
--- 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;

mercurial