From 9811586718d92dd886e540eb62b1286ff66a6677 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Wed, 18 Dec 2024 21:25:26 -0500 Subject: [PATCH] fixes: #7940 Use std::string insert to in place of arg sub for std::string static --- src/lib/deskflow/ServerApp.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/deskflow/ServerApp.h b/src/lib/deskflow/ServerApp.h index 8ef031928..728b73220 100644 --- a/src/lib/deskflow/ServerApp.h +++ b/src/lib/deskflow/ServerApp.h @@ -22,6 +22,7 @@ #include "arch/IArchMultithread.h" #include "base/EventTypes.h" #include "base/String.h" +#include "common/constants.h" #include "deskflow/App.h" #include "net/NetworkAddress.h" #include "server/Config.h" @@ -146,8 +147,8 @@ private: EventQueueTimer *m_timer; NetworkAddress *m_deskflowAddress; #if SYSAPI_WIN32 - inline static const std::string CONFIG_NAME = "%s.sgc", kAppName; + inline static const std::string CONFIG_NAME = std::string(kAppName) + ".sgc"; #elif SYSAPI_UNIX - inline static const std::string CONFIG_NAME = "%s.conf", kAppName; + inline static const std::string CONFIG_NAME = std::string(kAppName) + ".conf"; #endif };