Saving my place.
[citadel.git] / webcit-ng / server / messages.c
index adbb2b8f7c8f9142aeaff676ae5765eb5563a54b..9fdb678b4da088e7822cf52c28f3eb0fd4346020 100644 (file)
@@ -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"));