Patch from Paul Bolle <pebolle@tiscali.nl>: Fix for bug #514771 (Fix for a crash while decoding TNEF attachments)

svn path=/trunk/; revision=34969
This commit is contained in:
Suman Manjunath
2008-02-07 10:34:42 +00:00
parent a765a5229c
commit 7c1f548f4d
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-02-07 Paul Bolle <pebolle@tiscali.nl>
** Fix for bug #514771
* tnef-plugin.c: (saveVCalendar): Fixed a crasher while decoding
TNEF attachments.
2007-08-27 Srinivasa Ragavan <sragavan@novell.com>
* tnef-plugin.c: (e_plugin_lib_enable): Avoid reentrancy in enable.

View File

@ -1030,7 +1030,7 @@ void saveVCalendar(TNEFStruct *tnef) {
buf = (variableLength *)g_malloc (sizeof(variableLength));
if ((buf->data = DecompressRTF(filename, &(buf->size))) != NULL) {
fprintf(fptr, "DESCRIPTION:");
printRtf(fptr, &buf);
printRtf(fptr, buf);
free(buf->data);
}