From 118997e456852a1e20ef3146298a87409cdbd85a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 6 Apr 2013 18:13:25 +0000 Subject: correct variant of the TabSRMM skin path's patch git-svn-id: http://svn.miranda-ng.org/main/trunk@4344 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/mim.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'plugins') diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp index 8eec49f5de..74241bd7fd 100644 --- a/plugins/TabSRMM/src/mim.cpp +++ b/plugins/TabSRMM/src/mim.cpp @@ -392,15 +392,13 @@ void CMimAPI::InitPaths() const TCHAR *szUserdataDir = getUserDir(); mir_sntprintf(m_szProfilePath, MAX_PATH, _T("%stabSRMM"), szUserdataDir); - if (ServiceExists(MS_FOLDERS_REGISTER_PATH)) - { - mir_sntprintf(m_szChatLogsPath, MAX_PATH, _T("%%miranda_logpath%%")); - mir_sntprintf(m_szSkinsPath, MAX_PATH, _T("%%miranda_path%%\\Skins\\TabSRMM")); + if (ServiceExists(MS_FOLDERS_REGISTER_PATH)) { + lstrcpyn(m_szChatLogsPath, _T("%miranda_logpath%"), MAX_PATH); + lstrcpyn(m_szSkinsPath, _T("%miranda_path%\\Skins\\TabSRMM"), MAX_PATH); } - else - { - mir_sntprintf(m_szChatLogsPath, MAX_PATH, VARST(_T("%%miranda_logpath%%"))); - mir_sntprintf(m_szSkinsPath, MAX_PATH, VARST(_T("%miranda_path%\\Skins\\TabSRMM"))); + else { + lstrcpyn(m_szChatLogsPath, VARST(_T("%miranda_logpath%")), MAX_PATH); + lstrcpyn(m_szSkinsPath, VARST(_T("%miranda_path%\\Skins\\TabSRMM")), MAX_PATH); } mir_sntprintf(m_szSavedAvatarsPath, MAX_PATH, _T("%s\\Saved Contact Pictures"), m_szProfilePath); } -- cgit v1.2.3