diff archive/libpst.c.diff @ 57:de3753c3160a

add archive directory with history of alioth versions that have been merged here
author Carl Byington <carl@five-ten-sg.com>
date Sat, 02 Feb 2008 12:54:07 -0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/archive/libpst.c.diff	Sat Feb 02 12:54:07 2008 -0800
@@ -0,0 +1,15 @@
+Index: libpst.c
+===================================================================
+--- libpst.c	(revision 45)
++++ libpst.c	(working copy)
+@@ -296,7 +296,9 @@
+       size = _pst_ff_getID2data(pf, ptr, &h);
+       // will need to encode any bytes left over
+       c = base64_encode(h.base64_extra_chars, h.base64_extra);
+-      pst_fwrite(c, 1, strlen(c), fp);
++      if(c != NULL) {
++        pst_fwrite(c, 1, strlen(c), fp);
++      }
+     } else {
+       DEBUG_WARN (("Couldn't find ID pointer. Cannot save attachement to Base64\n"));
+     }