libpurple/protocols/msnp9/directconn.c

changeset 22622
1ecb840b5101
parent 21844
da35d094499f
child 24044
3fd74bed3968
equal deleted inserted replaced
22621:552a6fb4de03 22622:1ecb840b5101
295 return; 295 return;
296 } 296 }
297 297
298 body_len = GUINT32_FROM_LE(body_len); 298 body_len = GUINT32_FROM_LE(body_len);
299 299
300 purple_debug_info("msn", "body_len=%d\n", body_len); 300 purple_debug_info("msn", "body_len=%" G_GSIZE_FORMAT "\n", body_len);
301 301
302 if (body_len <= 0) 302 if (body_len <= 0)
303 { 303 {
304 /* ERROR */ 304 /* ERROR */
305 purple_debug_error("msn", "error reading\n"); 305 purple_debug_error("msn", "error reading\n");
314 if (body != NULL) 314 if (body != NULL)
315 { 315 {
316 /* Let's read the data. */ 316 /* Let's read the data. */
317 len = read(directconn->fd, body, body_len); 317 len = read(directconn->fd, body, body_len);
318 318
319 purple_debug_info("msn", "len=%d\n", len); 319 purple_debug_info("msn", "len=%" G_GSIZE_FORMAT "\n", len);
320 } 320 }
321 else 321 else
322 { 322 {
323 purple_debug_error("msn", "Failed to allocate memory for read\n"); 323 purple_debug_error("msn", "Failed to allocate memory for read\n");
324 len = 0; 324 len = 0;

mercurial