]> code.citadel.org Git - citadel.git/blobdiff - citadel/msgbase.c
fixed time_t handling (have to cast it to long for printf/scanf)
[citadel.git] / citadel / msgbase.c
index 997be2f352e0a52952c22998a17a2e1462b1c3e7..da663996ea88977d1d9278efc3d2a0c58ea2a75e 100644 (file)
@@ -995,7 +995,7 @@ void aide_message(char *text)
        fp=fopen(CC->temp,"wb");
        fprintf(fp,"%c%c%c",255,MES_NORMAL,0);
        fprintf(fp,"Psysop%c",0);
-       fprintf(fp,"T%ld%c", time(NULL), 0);
+       fprintf(fp,"T%ld%c", (long)time(NULL), 0);
        fprintf(fp,"ACitadel%c",0);
        fprintf(fp,"OAide%c",0);
        fprintf(fp,"N%s%c",NODENAME,0);
@@ -1055,7 +1055,7 @@ void make_message(
        putc(type,fp);  /* Normal or anonymous, see MES_ flags */
        putc(format_type,fp);   /* Formatted or unformatted */
        fprintf(fp,"Pcit%ld%c",author->usernum,0);      /* path */
-       fprintf(fp,"T%ld%c",now,0);                     /* date/time */
+       fprintf(fp,"T%ld%c",(long)now,0);               /* date/time */
        if (fake_name[0])
           fprintf(fp,"A%s%c",fake_name,0);
        else