From: Ethan B. <ebl...@us...> - 2004-04-08 04:35:33
|
Update of /cvsroot/gaim/gaim/src/protocols/yahoo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13929/src/protocols/yahoo Modified Files: yahoo.c Log Message: yahoo_decode bugfix Index: yahoo.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/yahoo/yahoo.c,v retrieving revision 1.216 retrieving revision 1.217 diff -u -d -p -r1.216 -r1.217 --- yahoo.c 6 Apr 2004 02:28:01 -0000 1.216 +++ yahoo.c 8 Apr 2004 04:22:28 -0000 1.217 @@ -902,16 +902,16 @@ static char *yahoo_decode(const char *te 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; |