summaryrefslogtreecommitdiff
path: root/vdlog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vdlog.cpp')
-rw-r--r--vdlog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdlog.cpp b/vdlog.cpp
index 02498f2..51182e3 100644
--- a/vdlog.cpp
+++ b/vdlog.cpp
@@ -52,7 +52,7 @@ VDLog* VDLog::get(TCHAR* path)
}
if (size != INVALID_FILE_SIZE && size > LOG_ROLL_SIZE) {
TCHAR roll_path[MAX_PATH];
- swprintf_s(roll_path, MAX_PATH, L"%s.1", path);
+ _sntprintf(roll_path, MAX_PATH, TEXT("%s.1"), path);
if (!MoveFileEx(path, roll_path, MOVEFILE_REPLACE_EXISTING)) {
return NULL;
}