libbb: merge mail and uudecode's base64 decoders
[platform/upstream/busybox.git] / mailutils / mime.c
index 44c7d02..682cf45 100644 (file)
@@ -225,7 +225,7 @@ static int parse(const char *boundary, char **argv)
        // prepare unique string pattern
        uniq = xasprintf("%%llu.%u.%s", (unsigned)getpid(), safe_gethostname());
 
-//bb_info_msg("PARSE[%s]", terminator);
+//bb_info_msg("PARSE[%s]", uniq);
 
        while ((line = xmalloc_fgets_str(stdin, "\r\n\r\n")) != NULL) {
 
@@ -306,7 +306,7 @@ static int parse(const char *boundary, char **argv)
 
                        // dump to fp
                        if (0 == strcasecmp(encoding, "base64")) {
-                               decode_base64(stdin, fp);
+                               read_base64(stdin, fp, '-');
                        } else if (0 != strcasecmp(encoding, "7bit")
                                && 0 != strcasecmp(encoding, "8bit")
                        ) {