Mercurial > pidgin.yaz
comparison libpurple/util.c @ 27458:70e64287f790
Hey Stu, it should be safe to combine this check, right? It'll make us
allow a few broken things, like if the length is 12aQ we'll parse the
length as x12a, but that's not too important, right?
I signed on to my Yahoo accounts and was able to fetch the icons from
the two people who have them.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 06 Jul 2009 05:37:06 +0000 |
parents | e9279f0e551a |
children | 6275df9d2d62 |
comparison
equal
deleted
inserted
replaced
27457:70629a4a89ec | 27458:70e64287f790 |
---|---|
3794 char *p = data; | 3794 char *p = data; |
3795 char *s = data; | 3795 char *s = data; |
3796 | 3796 |
3797 while (*s) { | 3797 while (*s) { |
3798 /* Read the size of this chunk */ | 3798 /* Read the size of this chunk */ |
3799 if (sscanf(s, "%" G_GSIZE_MODIFIER "x\r\n", &sz) != 1 && | 3799 if (sscanf(s, "%" G_GSIZE_MODIFIER "x", &sz) != 1) |
3800 sscanf(s, "%" G_GSIZE_MODIFIER "x;", &sz) != 1) | |
3801 { | 3800 { |
3802 purple_debug_error("util", "Error processing chunked data: " | 3801 purple_debug_error("util", "Error processing chunked data: " |
3803 "Expected data length, found: %s\n", s); | 3802 "Expected data length, found: %s\n", s); |
3804 break; | 3803 break; |
3805 } | 3804 } |