Mercurial > pidgin
comparison src/util.c @ 5289:cfbd0cb3f18b
[gaim-migrate @ 5661]
this implements the receiving side of JEP-0008 (User Avatars) which most
Gaim users know better as Buddy Icons. Only one client I know of actually
sends them, and it's on windows.
This doesn't handle multiple resources right, but I'll fix that after my exam.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 03 May 2003 16:08:46 +0000 |
parents | 60983a46700e |
children | 6dfcd7dbecde |
comparison
equal
deleted
inserted
replaced
5288:92cbe9541c3b | 5289:cfbd0cb3f18b |
---|---|
428 tmp = 52 + (*c - '0'); | 428 tmp = 52 + (*c - '0'); |
429 } else if (*c == '+') { | 429 } else if (*c == '+') { |
430 tmp = 62; | 430 tmp = 62; |
431 } else if (*c == '/') { | 431 } else if (*c == '/') { |
432 tmp = 63; | 432 tmp = 63; |
433 } else if (*c == '\r' || *c == '\n') { | |
434 c++; | |
435 continue; | |
433 } else if (*c == '=') { | 436 } else if (*c == '=') { |
434 if (n == 3) { | 437 if (n == 3) { |
435 out = g_realloc(out, len + 2); | 438 out = g_realloc(out, len + 2); |
436 out[len] = (char)(tmp2 >> 10) & 0xff; | 439 out[len] = (char)(tmp2 >> 10) & 0xff; |
437 len++; | 440 len++; |