From 5508607dfab4b8697399034f457568c9e023c58e Mon Sep 17 00:00:00 2001 From: Artem Martynovich Date: Wed, 15 Jul 2015 11:24:49 +0600 Subject: [PATCH] Fix incorrect string type for fopen_s. --- include/spdlog/details/file_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/file_helper.h b/include/spdlog/details/file_helper.h index c9a70ef7..a5f9f265 100644 --- a/include/spdlog/details/file_helper.h +++ b/include/spdlog/details/file_helper.h @@ -66,7 +66,7 @@ public: { close(); - tchar* mode = truncate ? S("wb") : S("ab"); + const tchar* mode = truncate ? S("wb") : S("ab"); _filename = fname; for (int tries = 0; tries < open_tries; ++tries) {