diff options
author | Denys Vlasenko | 2010-09-16 17:51:13 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-09-16 17:51:13 +0200 |
commit | 9fe98f701d40835db32baa12c94b661d40231ea4 (patch) | |
tree | 781c9c71519f3eb79082eac54e0cc545e16b2fd1 /mailutils/mime.c | |
parent | 52e460b7440ed5b85e4125a4eccf1e665d92c0ff (diff) | |
download | busybox-9fe98f701d40835db32baa12c94b661d40231ea4.zip busybox-9fe98f701d40835db32baa12c94b661d40231ea4.tar.gz |
libbb: merge mail and uudecode's base64 decoders
function old new delta
read_base64 - 378 +378
uudecode_main 306 315 +9
parse 953 958 +5
read_stduu 250 254 +4
base64_main 217 219 +2
read_base64 358 - -358
decode_base64 371 - -371
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 4/0 up/down: 398/-729) Total: -331 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'mailutils/mime.c')
-rw-r--r-- | mailutils/mime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mailutils/mime.c b/mailutils/mime.c index 44c7d02..682cf45 100644 --- a/mailutils/mime.c +++ b/mailutils/mime.c @@ -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") ) { |