Mercurial > pidgin
changeset 27273:33734bb78c9f
We're about to assume strstr() will find \r\n, so make the sscanf()
ensure it is actually there.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 04 Jul 2009 00:59:44 +0000 |
parents | 802de68c9fc3 |
children | 6aa7772c4cc1 fe242dec0d50 |
files | libpurple/util.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/util.c Fri Jul 03 19:28:25 2009 +0000 +++ b/libpurple/util.c Sat Jul 04 00:59:44 2009 +0000 @@ -3797,7 +3797,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) + sscanf(s, "%" G_GSIZE_MODIFIER "x;\r\n", &sz) != 1) { purple_debug_error("util", "Error processing chunked data: " "Expected data length, found: %s\n", s);