fix: #212 Undefined behavior on printf

This commit is contained in:
yuanyuanxiang
2025-10-26 04:53:16 +08:00
parent b0f622b9c4
commit 8ed23cc8dc
5 changed files with 8 additions and 5 deletions

View File

@@ -98,7 +98,7 @@ public:
}
#ifndef _WINDOWS
#ifdef _DEBUG
printf(logEntry.c_str());
printf("%s", logEntry.c_str());
#endif
#endif
cv.notify_one(); // ֪ͨд<D6AA>߳<EFBFBD>