aboutsummaryrefslogtreecommitdiff
path: root/mailutils/makemime.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-07-31 17:30:08 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-07-31 17:30:08 +0200
commit8d634a08c4164da3a0d93caa9de825384e59d27d (patch)
treecfabe15456c00a6582a3b279388128faad013f6d /mailutils/makemime.c
parentf28b8857a9fa7b2b137a19ce7069077da5706d78 (diff)
downloadbusybox-8d634a08c4164da3a0d93caa9de825384e59d27d.tar.gz
sendfile: code shrink
function old new delta printstr_base64 - 22 +22 printbuf_base64 - 11 +11 printfile_base64 - 9 +9 makemime_main 305 294 -11 encode_n_base64 236 223 -13 sendmail_main 1380 1366 -14 encode_base64 36 - -36 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 0/3 up/down: 42/-74) Total: -32 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'mailutils/makemime.c')
-rw-r--r--mailutils/makemime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailutils/makemime.c b/mailutils/makemime.c
index 577bcde39..7539d5134 100644
--- a/mailutils/makemime.c
+++ b/mailutils/makemime.c
@@ -234,7 +234,7 @@ int makemime_main(int argc UNUSED_PARAM, char **argv)
, G.opt_charset
, bb_get_last_path_component_strip(*argv)
);
- encode_base64(*argv++, (const char *)stdin, "");
+ printfile_base64(*argv++);
}
// put multipart footer