# HG changeset patch # User Ethan Blanton # Date 1081398148 0 # Node ID aa815d1a996d0a32cce48432dfcf9476ba2ebe2e # Parent f26e7dc1805e3501d9d8cedc3f4fbe46ea8665f3 [gaim-migrate @ 9367] yahoo_decode bugfix committer: Tailor Script diff -r f26e7dc1805e -r aa815d1a996d src/protocols/yahoo/yahoo.c --- 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;