From 13eb83bea655c3302c74a82d826d75bceb9232a2 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Mon, 8 Dec 2014 22:13:57 +0000 Subject: code cleanup around mir_snprintf git-svn-id: http://svn.miranda-ng.org/main/trunk@11285 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/path.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mir_core/path.cpp') 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) -- cgit v1.2.3