DEBUG(D_deliver) debug_printf("sending error message to: %s\n", sender_address);
/* build unique id for MIME boundary */
- snprintf(boundaryStr, 63, "%d-eximdsn-%d", time(NULL), rand());
+ snprintf(boundaryStr, 63, "%l-eximdsn-%d", (long) time(NULL), rand());
DEBUG(D_deliver) debug_printf("DSN: MIME boundary: %s\n", boundaryStr);
if (errors_reply_to != NULL) fprintf(f,"Reply-To: %s\n", errors_reply_to);
#ifdef EXPERIMENTAL_DSN
/* generate boundary string and output MIME-Headers */
uschar boundaryStr[64];
- snprintf(boundaryStr, 63, "%d-eximdsn-%d", time(NULL), rand());
+ snprintf(boundaryStr, 63, "%l-eximdsn-%d", (long) time(NULL), rand());
fprintf(f,"Content-Type: multipart/report; report-type=delivery-status; boundary=%s\n", boundaryStr);
fprintf(f,"MIME-Version: 1.0\n");
#endif
#ifdef EXPERIMENTAL_DSN
/* generated boundary string and output MIME-Headers */
uschar boundaryStr[64];
- snprintf(boundaryStr, 63, "%d-eximdsn-%d", time(NULL), rand());
+ snprintf(boundaryStr, 63, "%l-eximdsn-%d", (long) time(NULL), rand());
fprintf(f,"Content-Type: multipart/report; report-type=delivery-status; boundary=%s\n", boundaryStr);
fprintf(f,"MIME-Version: 1.0\n");
#endif