Fix circular dolog
This commit is contained in:
parent
874edab837
commit
723c172527
1
bbs.c
1
bbs.c
@ -100,7 +100,6 @@ void dolog(char *fmt, ...) {
|
|||||||
snprintf(buffer, 512, "%s/%04d%02d%02d.log", conf.log_path, time_now.tm_year + 1900, time_now.tm_mon + 1, time_now.tm_mday);
|
snprintf(buffer, 512, "%s/%04d%02d%02d.log", conf.log_path, time_now.tm_year + 1900, time_now.tm_mon + 1, time_now.tm_mday);
|
||||||
logfptr = fopen(buffer, "a");
|
logfptr = fopen(buffer, "a");
|
||||||
if (!logfptr) {
|
if (!logfptr) {
|
||||||
dolog("Error opening log file!");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
Reference in New Issue
Block a user