fix:format-overflow may be happend

This commit is contained in:
wangmm0220 2023-11-21 19:15:57 +08:00
parent b3ca673fe9
commit 916f5d4cf9
1 changed files with 2 additions and 2 deletions

View File

@ -623,8 +623,8 @@ void basic_consume_loop(tmq_t* tmq, tmq_list_t* topics) {
}
void initLogFile() {
char f1[256] = {0};
char f2[256] = {0};
char f1[1024] = {0};
char f2[1024] = {0};
if (g_conf.snapShot) {
sprintf(f1, "%s/../log/tmq_taosx_tmp_snapshot.source", g_conf.dir);