From 37496f4ad4c4ba98ef9e9fb7c8449c7680e8bbb1 Mon Sep 17 00:00:00 2001 From: 3JlOy_PYCCKUI <3JlOy_PYCCKUI@protonmail.com> Date: Sat, 11 Dec 2021 15:12:21 +0300 Subject: [PATCH] litle printf fix --- src/utilities/Debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utilities/Debug.cpp b/src/utilities/Debug.cpp index 6dfd8c5..873822f 100644 --- a/src/utilities/Debug.cpp +++ b/src/utilities/Debug.cpp @@ -24,7 +24,7 @@ void Debug::log(LogLevel level, std::string msg) { default: break; } - printf((msg + "\n").c_str()); + printf("%s", (msg + "\n").c_str()); // also log to a file const std::string DEBUGPATH = ISDEBUG ? "/tmp/hypr/hyprd.log" : "/tmp/hypr/hypr.log"; @@ -32,4 +32,4 @@ void Debug::log(LogLevel level, std::string msg) { ofs.open(DEBUGPATH, std::ios::out | std::ios::app); ofs << msg << "\n"; ofs.close(); -} \ No newline at end of file +}