diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-07-31 17:30:08 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-07-31 17:30:08 +0200 |
commit | 8d634a08c4164da3a0d93caa9de825384e59d27d (patch) | |
tree | cfabe15456c00a6582a3b279388128faad013f6d /mailutils/sendmail.c | |
parent | f28b8857a9fa7b2b137a19ce7069077da5706d78 (diff) | |
download | busybox-w32-8d634a08c4164da3a0d93caa9de825384e59d27d.tar.gz busybox-w32-8d634a08c4164da3a0d93caa9de825384e59d27d.tar.bz2 busybox-w32-8d634a08c4164da3a0d93caa9de825384e59d27d.zip |
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/sendmail.c')
-rw-r--r-- | mailutils/sendmail.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mailutils/sendmail.c b/mailutils/sendmail.c index 1dbaf595c..2fbceaad2 100644 --- a/mailutils/sendmail.c +++ b/mailutils/sendmail.c | |||
@@ -371,13 +371,13 @@ int sendmail_main(int argc UNUSED_PARAM, char **argv) | |||
371 | // substitute placeholders | 371 | // substitute placeholders |
372 | plain_auth[0] = '\0'; | 372 | plain_auth[0] = '\0'; |
373 | plain_auth[1 + user_len] = '\0'; | 373 | plain_auth[1 + user_len] = '\0'; |
374 | encode_n_base64(NULL, plain_auth, 1 + user_len + 1 + pass_len, NULL); | 374 | printbuf_base64(plain_auth, 1 + user_len + 1 + pass_len); |
375 | free(plain_auth); | 375 | free(plain_auth); |
376 | } else if ((opts & OPT_am_mask) == OPT_am_login) { | 376 | } else if ((opts & OPT_am_mask) == OPT_am_login) { |
377 | smtp_check("AUTH LOGIN", 334); | 377 | smtp_check("AUTH LOGIN", 334); |
378 | encode_base64(NULL, G.user, NULL); | 378 | printstr_base64(G.user); |
379 | smtp_check("", 334); | 379 | smtp_check("", 334); |
380 | encode_base64(NULL, G.pass, NULL); | 380 | printstr_base64(G.pass); |
381 | } | 381 | } |
382 | smtp_check("", 235); | 382 | smtp_check("", 235); |
383 | } | 383 | } |