Commits (1)
...@@ -1716,11 +1716,11 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode, bool ...@@ -1716,11 +1716,11 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode, bool
else if(!strcmp(sp,"ULS")) else if(!strcmp(sp,"ULS"))
safe_snprintf(str,maxlen,"%lu", (ulong)stats.uls); safe_snprintf(str,maxlen,"%lu", (ulong)stats.uls);
else if(!strcmp(sp,"ULB")) else if(!strcmp(sp,"ULB"))
safe_snprintf(str,maxlen,"%" PRIu32, stats.ulb); safe_snprintf(str,maxlen,"%" PRIu64, stats.ulb);
else if(!strcmp(sp,"DLS")) else if(!strcmp(sp,"DLS"))
safe_snprintf(str,maxlen,"%lu", (ulong)stats.dls); safe_snprintf(str,maxlen,"%lu", (ulong)stats.dls);
else if(!strcmp(sp,"DLB")) else if(!strcmp(sp,"DLB"))
safe_snprintf(str,maxlen,"%" PRIu32, stats.dlb); safe_snprintf(str,maxlen,"%" PRIu64, stats.dlb);
else if(!strcmp(sp,"PTODAY")) else if(!strcmp(sp,"PTODAY"))
safe_snprintf(str,maxlen,"%lu", (ulong)stats.ptoday); safe_snprintf(str,maxlen,"%lu", (ulong)stats.ptoday);
else if(!strcmp(sp,"ETODAY")) else if(!strcmp(sp,"ETODAY"))
......
...@@ -271,7 +271,7 @@ BOOL fwrite_cstats(FILE* fp, const stats_t* stats) ...@@ -271,7 +271,7 @@ BOOL fwrite_cstats(FILE* fp, const stats_t* stats)
); );
if(len >= sizeof(pad)) if(len >= sizeof(pad))
return FALSE; return FALSE;
if(fprintf(fp, "%.*s\n", sizeof(pad) - (len + 1), pad) <= 0) if(fprintf(fp, "%.*s\n", (int)(sizeof(pad) - (len + 1)), pad) <= 0)
return FALSE; return FALSE;
} }
len = fprintf(fp len = fprintf(fp
...@@ -290,7 +290,7 @@ BOOL fwrite_cstats(FILE* fp, const stats_t* stats) ...@@ -290,7 +290,7 @@ BOOL fwrite_cstats(FILE* fp, const stats_t* stats)
); );
if(len >= sizeof(pad)) if(len >= sizeof(pad))
return FALSE; return FALSE;
return fprintf(fp, "%.*s\n", sizeof(pad) - (len + 1), pad) > 0; return fprintf(fp, "%.*s\n", (int)(sizeof(pad) - (len + 1)), pad) > 0;
} }
/****************************************************************************/ /****************************************************************************/
......