]> code.citadel.org Git - citadel.git/blobdiff - citadel/citmail.c
fixed time_t handling (have to cast it to long for printf/scanf)
[citadel.git] / citadel / citmail.c
index 9f179352f972601a8c88ae6f9090e4bb366c9b9a..be68dff2f3336b93456623530fa73373a18562cf 100644 (file)
@@ -446,7 +446,7 @@ void do_citmail(char recp[], int dtype)
 
        /* Origination */
        fprintf(temp, "P%s@%s%c", userbuf, nodebuf, 0);
-       fprintf(temp, "T%ld%c", now, 0);
+       fprintf(temp, "T%ld%c", (long)now, 0);
        fprintf(temp, "A%s%c", userbuf, 0);
 
        /* Destination */