Line 386 of readpst.c in libpst 0.5.1 says: f->name = (char*)xmalloc(strlen(item->file_as)+strlen(OUTPUT_TEMPLATE+1)); It looks to me as though it should say: f->name = (char*)xmalloc(strlen(item->file_as)+strlen(OUTPUT_TEMPLATE)+1); -Nigel Horne