mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
deploy-stub: Fix compilation error
This commit is contained in:
parent
f55cdd8907
commit
926af198a8
@ -787,12 +787,12 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (log_filename != NULL) {
|
if (log_filename != NULL) {
|
||||||
char log_filename_buf[PATH_MAX];
|
char log_filename_buf[4096];
|
||||||
if (blobinfo.flags & F_log_filename_strftime) {
|
if (blobinfo.flags & F_log_filename_strftime) {
|
||||||
log_filename_buf[0] = 0;
|
log_filename_buf[0] = 0;
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
if (strftime(log_filename_buf, sizeof(log_filename_buf), log_filename, localtime(&now)) > 0) {
|
if (strftime(log_filename_buf, sizeof(log_filename_buf), log_filename, localtime(&now)) > 0) {
|
||||||
log_filename = &log_filename_buf;
|
log_filename = log_filename_buf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setup_logging(log_filename, (blobinfo.flags & F_log_append) != 0);
|
setup_logging(log_filename, (blobinfo.flags & F_log_append) != 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user