Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #85 from dropperY/fix-copy-filename

fix copy filename
  • Loading branch information...
commit 1e8a68c08b0b0f6db1ff779847550fe9a708738a 2 parents 8e7d1c5 + e22aca1
@mronge mronge authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/CTMIME_SinglePart.m
View
2  Source/CTMIME_SinglePart.m
@@ -205,7 +205,7 @@ - (struct mailmime *)buildMIMEStruct {
if (mFilename) {
char *charData = (char *)[mFilename cStringUsingEncoding:NSUTF8StringEncoding];
- char *dupeData = malloc(strlen(charData));
+ char *dupeData = malloc(strlen(charData) + 1);
strcpy(dupeData, charData);
mime_fields = mailmime_fields_new_filename( MAILMIME_DISPOSITION_TYPE_ATTACHMENT,
dupeData,
Please sign in to comment.
Something went wrong with that request. Please try again.