commit 77082879b2fead0be507eb38d6da710ae9a4e63f
parent 20de687670e621c4c1e6ee22d6e52caa09387d7c
Author: Dan Callaghan <djc@djc.id.au>
Date: Sat, 6 Nov 2010 16:31:33 +1000
fix for sasl_encode64 ABI change
Based on mail-notification-5.4-sasl_encode64.patch from Fedora:
http://pkgs.fedoraproject.org/gitweb/?p=mail-notification.git;a=blob;f=mail-notification-5.4-sasl_encode64.patch;h=80a7304d10d1a1ae2a3d29428b6425c0a22c789c;hb=0a002ddd116bd02343a4f9bbf4d0efdf594557ee
Related to Red Hat bug #501456:
https://bugzilla.redhat.com/show_bug.cgi?id=501456
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mn-client-session.c b/src/mn-client-session.c
@@ -1030,7 +1030,7 @@ mn_client_session_write (MNClientSession *session,
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;
diff --git a/src/mn-pop3-mailbox.gob b/src/mn-pop3-mailbox.gob
@@ -438,7 +438,7 @@ class MN:POP3:Mailbox from MN:PI:Mailbox
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;