diff options
author | root <root@rshg047.dnsready.net> | 2011-04-15 04:55:43 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-04-15 04:55:43 +0000 |
commit | 7d13548d48c1e98b9c12201685fd6fef5e9388db (patch) | |
tree | 3aa20fadd718d86194b0e9cd5b4b3aef3b64ada9 /testing/mail-notification/mail-notification-5.4-sasl_encode64.patch | |
parent | 5611a56fd08da4e95cdf8de446dda50d7afa80c8 (diff) |
Fri Apr 15 04:55:43 UTC 2011
Diffstat (limited to 'testing/mail-notification/mail-notification-5.4-sasl_encode64.patch')
-rw-r--r-- | testing/mail-notification/mail-notification-5.4-sasl_encode64.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/mail-notification/mail-notification-5.4-sasl_encode64.patch b/testing/mail-notification/mail-notification-5.4-sasl_encode64.patch new file mode 100644 index 000000000..80a7304d1 --- /dev/null +++ b/testing/mail-notification/mail-notification-5.4-sasl_encode64.patch @@ -0,0 +1,24 @@ +diff -up mail-notification-5.4/build/src/mn-pop3-mailbox.c mail-notification-5.4-OK/build/src/mn-pop3-mailbox.c +--- mail-notification-5.4/build/src/mn-pop3-mailbox.c 2009-05-19 10:29:58.448201837 +0200 ++++ mail-notification-5.4-OK/build/src/mn-pop3-mailbox.c 2009-05-19 10:23:29.356204287 +0200 +@@ -619,7 +619,7 @@ mn_pop3_mailbox_enter_auth_cb (MNClientS + + if (initial_clientoutlen > 0) + { +- char buf64[initial_clientoutlen * 2]; /* Base64 is 33% larger than the data it encodes */ ++ char buf64[initial_clientoutlen * 2 + 1]; /* Base64 is 33% larger than the data it encodes */ + unsigned int outlen; + int result; + char *str; +diff -up mail-notification-5.4/src/mn-client-session.c mail-notification-5.4-OK/src/mn-client-session.c +--- mail-notification-5.4/src/mn-client-session.c 2008-05-22 17:45:35.000000000 +0200 ++++ mail-notification-5.4-OK/src/mn-client-session.c 2009-05-19 10:29:09.112211055 +0200 +@@ -1030,7 +1030,7 @@ mn_client_session_write (MNClientSession + static int + write_base64 (MNClientSession *session, const char *buf, unsigned int len) + { +- char buf64[len * 2]; /* Base64 is 33% larger than the data it encodes */ ++ char buf64[len * 2 + 1]; /* Base64 is 33% larger than the data it encodes */ + unsigned int outlen; + int result; + char *str; |