diff src/mime.c @ 11127:719779387f96

[gaim-migrate @ 13183] Change the base16 and base64 functions to use better data types, and make appropriate changes to other parts of the Gaim code to get rid of a few warnings and hopefully make things more correct. In other news, why is CVS HEAD crashing for me on exit? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 19 Jul 2005 05:15:45 +0000
parents 2507d20c3d0b
children a4611130e3eb
line wrap: on
line diff
--- a/src/mime.c	Tue Jul 19 03:51:54 2005 +0000
+++ b/src/mime.c	Tue Jul 19 05:15:45 2005 +0000
@@ -328,10 +328,10 @@
     *len = part->data->len;
 
   } else if(! g_ascii_strcasecmp(enc, "base16")) {
-    *len = gaim_base16_decode(part->data->str, (unsigned char **) data);
+    *data = gaim_base16_decode(part->data->str, len);
 
   } else if(! g_ascii_strcasecmp(enc, "base64")) {
-    gaim_base64_decode(part->data->str, data, len);
+	*data = gaim_base64_decode(part->data->str, len);
 
   } else if(! g_ascii_strcasecmp(enc, "quoted-printable")) {
     gaim_quotedp_decode(part->data->str, data, len);