* post_message() whoops, wrong pointer?
authorWilfried Göesgens <willi@citadel.org>
Thu, 17 Jun 2010 19:36:27 +0000 (19:36 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 17 Jun 2010 19:36:27 +0000 (19:36 +0000)
webcit/messages.c

index 1ae3693fde75cdf7070e72aff6164920e28fad55..c190e0ff8df42183da279ca0c88472f6d811e065 100644 (file)
@@ -1013,7 +1013,7 @@ void post_message(void)
                memset(att, 0, sizeof(wc_mime_attachment ));
                att->length = WCC->upload_length;
                att->ContentType = NewStrBufPlain(WCC->upload_content_type, -1);
-               att->FileName = NewStrBufPlain(WCC->upload_filename, -1);
+               att->FileName = NewStrBufDup(WCC->upload_filename);
                
                if (WCC->attachments == NULL) {
                        WCC->attachments = NewHash(1, Flathash);