# HG changeset patch # User Mark Doliner # Date 1246858626 0 # Node ID 70e64287f790f45e0d46b96cfce4289a2dabaf6c # Parent 70629a4a89ec10652d535312f8dd5e043d227d78 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. diff -r 70629a4a89ec -r 70e64287f790 libpurple/util.c --- a/libpurple/util.c Mon Jul 06 05:33:27 2009 +0000 +++ b/libpurple/util.c Mon Jul 06 05:37:06 2009 +0000 @@ -3796,8 +3796,7 @@ while (*s) { /* Read the size of this chunk */ - if (sscanf(s, "%" G_GSIZE_MODIFIER "x\r\n", &sz) != 1 && - sscanf(s, "%" G_GSIZE_MODIFIER "x;", &sz) != 1) + if (sscanf(s, "%" G_GSIZE_MODIFIER "x", &sz) != 1) { purple_debug_error("util", "Error processing chunked data: " "Expected data length, found: %s\n", s);