summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/path.cpp4
-rw-r--r--src/modules/metacontacts/meta_menu.cpp2
-rw-r--r--src/modules/netlib/netliblog.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/mir_core/path.cpp b/src/mir_core/path.cpp
index d4148f457d..ab0ee26b14 100644
--- a/src/mir_core/path.cpp
+++ b/src/mir_core/path.cpp
@@ -77,8 +77,8 @@ MIR_CORE_DLL(int) PathToAbsolute(const char *pSrc, char *pOut, const char *base)
if (pSrc[0] == '\\')
pSrc++;
- mir_snprintf(buf, MAX_PATH, "%s%s", base, pSrc);
- return GetFullPathNameA(buf, MAX_PATH, pOut, NULL);
+ mir_snprintf(buf, SIZEOF(buf), "%s%s", base, pSrc);
+ return GetFullPathNameA(buf, SIZEOF(buf), pOut, NULL);
}
MIR_CORE_DLL(void) CreatePathToFile(char *szFilePath)
diff --git a/src/modules/metacontacts/meta_menu.cpp b/src/modules/metacontacts/meta_menu.cpp
index f2b1822e6d..4dc8c390c1 100644
--- a/src/modules/metacontacts/meta_menu.cpp
+++ b/src/modules/metacontacts/meta_menu.cpp
@@ -296,7 +296,7 @@ int Meta_ModifyMenu(WPARAM hMeta, LPARAM)
// show hide nudge menu item
char serviceFunc[256];
- mir_snprintf(serviceFunc, 256, "%s%s", GetContactProto(Meta_GetMostOnline(cc)), PS_SEND_NUDGE);
+ mir_snprintf(serviceFunc, SIZEOF(serviceFunc), "%s%s", GetContactProto(Meta_GetMostOnline(cc)), PS_SEND_NUDGE);
CallService(MS_NUDGE_SHOWMENU, (WPARAM)META_PROTO, ServiceExists(serviceFunc));
return 0;
}
diff --git a/src/modules/netlib/netliblog.cpp b/src/modules/netlib/netliblog.cpp
index 482aa33200..90c77aafe1 100644
--- a/src/modules/netlib/netliblog.cpp
+++ b/src/modules/netlib/netliblog.cpp
@@ -329,9 +329,9 @@ static INT_PTR NetlibLog(WPARAM wParam, LPARAM lParam)
char *szUser = (logOptions.showUser) ? (nlu == NULL ? NULL : nlu->user.szSettingsModule) : NULL;
if (szUser)
- mir_snprintf(szHead, SIZEOF(szHead) - 1, "[%s%04X] [%s] ", szTime, GetCurrentThreadId(), szUser);
+ mir_snprintf(szHead, SIZEOF(szHead), "[%s%04X] [%s] ", szTime, GetCurrentThreadId(), szUser);
else
- mir_snprintf(szHead, SIZEOF(szHead) - 1, "[%s%04X] ", szTime, GetCurrentThreadId());
+ mir_snprintf(szHead, SIZEOF(szHead), "[%s%04X] ", szTime, GetCurrentThreadId());
if (logOptions.toOutputDebugString) {
if (szHead[0])