Mercurial > pidgin
diff libpurple/util.c @ 27244:7a4f56967512
Use unsigned lengths here and use %zu when reading into the gsize var
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 02 Jul 2009 06:08:36 +0000 |
parents | a337d7a5cd0c |
children | a051f77d86a8 |
line wrap: on
line diff
--- a/libpurple/util.c Thu Jul 02 04:15:21 2009 +0000 +++ b/libpurple/util.c Thu Jul 02 06:08:36 2009 +0000 @@ -3786,15 +3786,15 @@ /* Process in-place */ static void -process_chunked_data(char *data, gssize *len) +process_chunked_data(char *data, gsize *len) { - gssize sz; - gssize nlen = 0; + gsize sz; + gsize nlen = 0; char *p = data; char *s = data; while (*s) { - if (sscanf(s, "%x\r\n", &sz) != 1) { + if (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); break; }