From 114f83d5d8a73b3f1435e09b1d91aff843e4ce15 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Tue, 2 Dec 2014 05:19:23 +0000 Subject: mir_snprintf(..., "%s", ...) -> strncpy_s(...) build fix to prevous commit git-svn-id: http://svn.miranda-ng.org/main/trunk@11212 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ExternalAPI/m_folders.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/ExternalAPI') diff --git a/plugins/ExternalAPI/m_folders.h b/plugins/ExternalAPI/m_folders.h index c54f7c3d18..4256e02355 100644 --- a/plugins/ExternalAPI/m_folders.h +++ b/plugins/ExternalAPI/m_folders.h @@ -172,7 +172,7 @@ __inline static INT_PTR FoldersGetCustomPath(HANDLE hFolderEntry, char *path, co if (res) { char buffer[MAX_PATH]; PathToAbsolute(notFound, buffer); - mir_snprintf(path, size, "%s", buffer); + strncpy_s(path, size, buffer, _TRUNCATE); } return res; @@ -205,7 +205,7 @@ __inline static INT_PTR FoldersGetCustomPathEx(HANDLE hFolderEntry, char *path, if (res) { char buffer[MAX_PATH]; PathToAbsolute(notFound, buffer); - mir_snprintf(path, size, "%s", buffer); + strncpy_s(path, size, buffer, _TRUNCATE); } if (path[0] != '\0') -- cgit v1.2.3