diff --git a/src/sbbs3/getstats.c b/src/sbbs3/getstats.c index e9f46c0dd76d83e84e236a69986e4c958542e822..a9c4ceff8e3ac204426403b358d5c81f50c6c79a 100644 --- a/src/sbbs3/getstats.c +++ b/src/sbbs3/getstats.c @@ -66,7 +66,7 @@ FILE* fopen_dstats(scfg_t* cfg, uint node, BOOL for_write) char path[MAX_PATH+1]; dstats_fname(cfg, node, path, sizeof(path)); - return iniOpenFile(path, for_write); + return fnopen(NULL, path, for_write ? O_CREAT|O_RDWR : O_RDONLY); } /****************************************************************************/ @@ -83,7 +83,7 @@ FILE* fopen_cstats(scfg_t* cfg, uint node, BOOL for_write) /****************************************************************************/ BOOL fclose_dstats(FILE* fp) { - return iniCloseFile(fp); + return fclose(fp); } /****************************************************************************/