dtmail: Resolve 50 compiler warnings.

This commit is contained in:
Peter Howkins
2015-01-06 15:07:55 +00:00
parent 3fab71345b
commit 0a0e1eebf5
15 changed files with 58 additions and 51 deletions

View File

@@ -995,7 +995,7 @@ RFCMessage::findMsgEnd(DtMailEnv & error, const char * eof)
content_length = content_length < 0 ? 0 : content_length;
char buf[20];
sprintf(buf, "%d", content_length);
sprintf(buf, "%lu", content_length);
_envelope->setHeader(error, "Content-Length", DTM_TRUE, buf);
return(real_end);
@@ -1607,7 +1607,7 @@ RFCMessage::extractBoundary(const char * content_type)
if (!content_type) {
char * new_bdry = (char *)malloc(78);
sprintf(new_bdry, "%08lx-%08lx-%08lx", new_bdry, (long)time(NULL), &new_bdry);
sprintf(new_bdry, "%p-%08lx-%p", new_bdry, (long)time(NULL), &new_bdry);
}
// We will need the boundary to find the message boundaries.