Mercurial > pidgin.yaz
changeset 27363:e8ac5369d567
Apparently there might be stuff after the semicolon before the \r\n so just
check that there really is a \r\n later on instead.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 04 Jul 2009 01:17:55 +0000 |
parents | 660cf341992f |
children | c3b1711991fc |
files | libpurple/util.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/util.c Sat Jul 04 01:16:21 2009 +0000 +++ b/libpurple/util.c Sat Jul 04 01:17:55 2009 +0000 @@ -3814,7 +3814,10 @@ } /* Advance to the start of the data */ - s = strstr(s, "\r\n") + 2; + s = strstr(s, "\r\n"); + if (s == NULL) + break; + s += 2; if (s + sz > data + *len) { purple_debug_error("util", "Error processing chunked data: "