]> code.citadel.org Git - citadel.git/blobdiff - webcit/mime_parser.c
* Final cvs commit for 1998 (an awful year, I'm glad to see it over).
[citadel.git] / webcit / mime_parser.c
index b205cb175895b2620c621d345dfa3b12df4e3e34..5e4a0aeadb1ffd0b36173797004ed1dff29f8cf4 100644 (file)
@@ -60,7 +60,11 @@ void do_something_with_it(char *content, int length, char *content_type,
         */
 
        else if (strlen(name)>0) {
-               
+               upload = malloc(length);
+               if (upload != NULL) {
+                       upload_length = length;
+                       memcpy(upload, content, length);
+                       }
                }
 
        }