comparison libpurple/protocols/msn/slp.c @ 32748:845885bd5e4d

Since we don't know what these fields are, and we don't use them, there's probably no need to waste memory for them.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 15 Oct 2011 23:43:14 +0000
parents 904686722499
children f0b5a6f8fded
comparison
equal deleted inserted replaced
32747:13b5d6eb099d 32748:845885bd5e4d
334 for (currentChar = 0; currentChar < len; currentChar++) { 334 for (currentChar = 0; currentChar < len; currentChar++) {
335 context.file_name[currentChar] = GUINT16_TO_LE(uni[currentChar]); 335 context.file_name[currentChar] = GUINT16_TO_LE(uni[currentChar]);
336 } 336 }
337 memset(&context.file_name[currentChar], 0x00, (MAX_FILE_NAME_LEN - currentChar) * 2); 337 memset(&context.file_name[currentChar], 0x00, (MAX_FILE_NAME_LEN - currentChar) * 2);
338 338
339 #if 0
339 memset(&context.unknown1, 0, sizeof(context.unknown1)); 340 memset(&context.unknown1, 0, sizeof(context.unknown1));
340 context.unknown2 = 0xffffffff; 341 context.unknown2 = 0xffffffff;
342 #endif
341 343
342 /* Mind the cast, as in, don't free it after! */ 344 /* Mind the cast, as in, don't free it after! */
343 context.preview = (char *)preview; 345 context.preview = (char *)preview;
344 context.preview_len = preview_len; 346 context.preview_len = preview_len;
345 347