summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-04 22:12:13 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-04 22:12:13 +0000
commitb7c74cd5b22618d544a3f4ae124985d4837e3a22 (patch)
tree468d9610a590685322ad2159a9bd2d9e2ba83f89 /src/mir_core
parent7de513f180c429859e246d1033d745b394e1fc28 (diff)
new mir_snprintf templates without SIZEOF
git-svn-id: http://svn.miranda-ng.org/main/trunk@14002 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/db.cpp2
-rw-r--r--src/mir_core/src/icons.cpp4
-rw-r--r--src/mir_core/src/path.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/mir_core/src/db.cpp b/src/mir_core/src/db.cpp
index 22e6b3e8df..6fd3aa39af 100644
--- a/src/mir_core/src/db.cpp
+++ b/src/mir_core/src/db.cpp
@@ -364,6 +364,6 @@ MIR_CORE_DLL(BOOL) db_set_resident(const char *szModule, const char *szService,
return FALSE;
char str[MAXMODULELABELLENGTH * 2];
- mir_snprintf(str, SIZEOF(str), "%s/%s", szModule, szService);
+ mir_snprintf(str, "%s/%s", szModule, szService);
return currDb->SetSettingResident(bEnable, str);
}
diff --git a/src/mir_core/src/icons.cpp b/src/mir_core/src/icons.cpp
index 92b0580ffa..806f17d775 100644
--- a/src/mir_core/src/icons.cpp
+++ b/src/mir_core/src/icons.cpp
@@ -39,7 +39,7 @@ MIR_CORE_DLL(void) Icon_Register(HINSTANCE hInst, const char *szSection, IconIte
for (unsigned i = 0; i < iCount; i++) {
char szSetting[100];
if (prefix) {
- mir_snprintf(szSetting, SIZEOF(szSetting), "%s_%s", prefix, pIcons[i].szName);
+ mir_snprintf(szSetting, "%s_%s", prefix, pIcons[i].szName);
sid.pszName = szSetting;
}
else sid.pszName = pIcons[i].szName;
@@ -64,7 +64,7 @@ MIR_CORE_DLL(void) Icon_RegisterT(HINSTANCE hInst, const TCHAR *szSection, IconI
for (unsigned i = 0; i < iCount; i++) {
char szSetting[100];
if (prefix) {
- mir_snprintf(szSetting, SIZEOF(szSetting), "%s_%s", prefix, pIcons[i].szName);
+ mir_snprintf(szSetting, "%s_%s", prefix, pIcons[i].szName);
sid.pszName = szSetting;
}
else sid.pszName = pIcons[i].szName;
diff --git a/src/mir_core/src/path.cpp b/src/mir_core/src/path.cpp
index 520f19b5a4..cd2b25e94d 100644
--- a/src/mir_core/src/path.cpp
+++ b/src/mir_core/src/path.cpp
@@ -77,7 +77,7 @@ MIR_CORE_DLL(int) PathToAbsolute(const char *pSrc, char *pOut, const char *base)
if (pSrc[0] == '\\')
pSrc++;
- mir_snprintf(buf, SIZEOF(buf), "%s%s", base, pSrc);
+ mir_snprintf(buf, "%s%s", base, pSrc);
return GetFullPathNameA(buf, SIZEOF(buf), pOut, NULL);
}