Mercurial > libpst
comparison src/pst2dii.cpp.in @ 307:db6db9a26a19
filter private provides from rpm
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 24 Dec 2012 16:26:39 -0800 |
parents | 201464dd356e |
children | cb67b335afcc |
comparison
equal
deleted
inserted
replaced
306:968a48a651af | 307:db6db9a26a19 |
---|---|
178 check_filename(fname); | 178 check_filename(fname); |
179 const char* f_name = fname.c_str(); | 179 const char* f_name = fname.c_str(); |
180 DEBUG_INFO(("dirname=%s, pathname=%s, filename=%s\n", output_directory, f_name, attach_filename)); | 180 DEBUG_INFO(("dirname=%s, pathname=%s, filename=%s\n", output_directory, f_name, attach_filename)); |
181 int len = strlen(output_directory) + 1 + strlen(f_name) + 15; | 181 int len = strlen(output_directory) + 1 + strlen(f_name) + 15; |
182 if (!attach_filename) { | 182 if (!attach_filename) { |
183 // generate our own (dummy) filename for the attachement | 183 // generate our own (dummy) filename for the attachment |
184 temp = (char*)pst_malloc(len); | 184 temp = (char*)pst_malloc(len); |
185 sprintf(temp, "%s/%s_attach%i", output_directory, f_name, attach_num); | 185 sprintf(temp, "%s/%s_attach%i", output_directory, f_name, attach_num); |
186 } else { | 186 } else { |
187 // have an attachment name, make sure it's unique | 187 // have an attachment name, make sure it's unique |
188 temp = (char*)pst_malloc(len+strlen(attach_filename)); | 188 temp = (char*)pst_malloc(len+strlen(attach_filename)); |