changeset 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 70629a4a89ec
children 714f9352e844
files libpurple/util.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);