comparison libpurple/protocols/msn/slp.c @ 28095:6c4e816873f7

Got the 'to' and 'from' charsets backwards there, didn't I.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 31 Jul 2009 04:09:01 +0000
parents 6c9c6123b942
children bf7039a638b7
comparison
equal deleted inserted replaced
28094:a82fec14ac0f 28095:6c4e816873f7
339 if (xfer) 339 if (xfer)
340 { 340 {
341 bin = (char *)purple_base64_decode(context, &bin_len); 341 bin = (char *)purple_base64_decode(context, &bin_len);
342 file_size = GUINT32_FROM_LE(*(gsize *)(bin + 8)); 342 file_size = GUINT32_FROM_LE(*(gsize *)(bin + 8));
343 343
344 file_name = g_convert(bin + 20, -1, "UTF-16LE", "UTF-8", 344 file_name = g_convert(bin + 20, -1, "UTF-8", "UTF-16LE",
345 NULL, NULL, NULL); 345 NULL, NULL, NULL);
346 346
347 g_free(bin); 347 g_free(bin);
348 348
349 purple_xfer_set_filename(xfer, file_name); 349 purple_xfer_set_filename(xfer, file_name);