From 332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 27 Jun 2023 20:23:44 +1000 Subject: The Formatting String Catastrophe --- source/core/StarLockFile_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/StarLockFile_windows.cpp') diff --git a/source/core/StarLockFile_windows.cpp b/source/core/StarLockFile_windows.cpp index 1cf1473..33692fb 100644 --- a/source/core/StarLockFile_windows.cpp +++ b/source/core/StarLockFile_windows.cpp @@ -41,7 +41,7 @@ bool LockFile::lock(int64_t timeout) { if (handle == INVALID_HANDLE_VALUE) { if (GetLastError() == ERROR_SHARING_VIOLATION) return {}; - throw StarException(strf("Could not open lock file %s, error code %s\n", filename, GetLastError())); + throw StarException(strf("Could not open lock file {}, error code {}\n", filename, GetLastError())); } return make_shared(handle); -- cgit v1.2.3