diff src/libstrfunc.c @ 110:7133b39975f7 stable-0-6-22

patch from David Cuadrado to process emails with type PST_TYPE_OTHER base64_encode_multiple() may insert newline, needs larger malloc subject lines shorter than 2 bytes could segfault
author Carl Byington <carl@five-ten-sg.com>
date Fri, 28 Nov 2008 11:36:53 -0800
parents 997cf1373f9e
children ab2a11e72250
line wrap: on
line diff
--- a/src/libstrfunc.c	Tue Oct 21 14:45:39 2008 -0700
+++ b/src/libstrfunc.c	Fri Nov 28 11:36:53 2008 -0800
@@ -36,7 +36,7 @@
 
     if (data == NULL || size == 0) return NULL;
 
-    ou = output = (char *)malloc(size / 3 * 4 + (size / 57) + 5);
+    ou = output = (char *)malloc(size / 3 * 4 + (size / 57) + 6);
     if (!output) return NULL;
 
     while((dte-p) >= 3) {