comparison src/protocols/msn/slp.c @ 9263:70153c759016

[gaim-migrate @ 10062] Patch by Andrew Wellington that fixes an endianness issue for MSN file transfer on big endian machines. The file sizes were being interpreted incorrectly. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 11 Jun 2004 00:18:36 +0000
parents f5f7482678d2
children 7a8aa87164ae
comparison
equal deleted inserted replaced
9262:572e4658492c 9263:70153c759016
317 317
318 xfer = gaim_xfer_new(account, GAIM_XFER_RECEIVE, 318 xfer = gaim_xfer_new(account, GAIM_XFER_RECEIVE,
319 slpcall->slplink->remote_user); 319 slpcall->slplink->remote_user);
320 320
321 gaim_base64_decode(context, &bin, &bin_len); 321 gaim_base64_decode(context, &bin, &bin_len);
322 file_size = *((gsize *)bin + 2); 322 file_size = GUINT32_FROM_LE(*((gsize *)bin + 2));
323 file_name = g_utf16_to_utf8((const gunichar2 *)(bin + 20), -1, 323 file_name = g_utf16_to_utf8((const gunichar2 *)(bin + 20), -1,
324 NULL, NULL, NULL); 324 NULL, NULL, NULL);
325 325
326 g_free(bin); 326 g_free(bin);
327 327