X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fserver%2Fmessages.c;h=9fdb678b4da088e7822cf52c28f3eb0fd4346020;hb=6fa96d7dd34fde497b2c8d0c91ed49830916cf44;hp=adbb2b8f7c8f9142aeaff676ae5765eb5563a54b;hpb=4d1b27f1d15851075ef054b8006b2902268f711f;p=citadel.git diff --git a/webcit-ng/server/messages.c b/webcit-ng/server/messages.c index adbb2b8f7..9fdb678b4 100644 --- a/webcit-ng/server/messages.c +++ b/webcit-ng/server/messages.c @@ -204,7 +204,7 @@ void dav_put_message(struct http_transaction *h, struct ctdlsession *c, char *eu // If there are attachments, open up a multipart/mixed MIME container. char *att = get_url_param(h, "att"); if (att) { - snprintf(mime_boundary, sizeof(mime_boundary), "citadel-multipart-%x-%x", time(NULL), rand()); + snprintf(mime_boundary, sizeof(mime_boundary), "citadel-multipart-%x-%x", (unsigned int)time(NULL), rand()); ctdl_printf(c, "MIME-Version: 1.0\r"); ctdl_printf(c, "Content-Type: multipart/mixed; boundary=\"%s\"\r", mime_boundary); ctdl_write(c, HKEY("\r\n"));