- Bring patches from Fedora PR: ports/156982 Submitted by: Marcin Wisnicki <mwisnicki+freebsd@gmail.com> (maintainer)
24 lines
1.1 KiB
Text
24 lines
1.1 KiB
Text
diff -up build/src/mn-pop3-mailbox.c build/src/mn-pop3-mailbox.c
|
|
--- build/src/mn-pop3-mailbox.c 2009-05-19 10:29:58.448201837 +0200
|
|
+++ 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 src/mn-client-session.c src/mn-client-session.c
|
|
--- src/mn-client-session.c 2008-05-22 17:45:35.000000000 +0200
|
|
+++ 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;
|