From 5cd6d51c8b23a429f1017f96e4db2f6864a63c70 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 9 Apr 2015 18:53:19 +0000 Subject: HTTPServer: - Minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12715 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HTTPServer/src/IndexHTML.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/HTTPServer/src/IndexHTML.cpp') diff --git a/plugins/HTTPServer/src/IndexHTML.cpp b/plugins/HTTPServer/src/IndexHTML.cpp index bf6b139529..89fc56f157 100644 --- a/plugins/HTTPServer/src/IndexHTML.cpp +++ b/plugins/HTTPServer/src/IndexHTML.cpp @@ -319,14 +319,14 @@ bool bCreateIndexHTML(const char * pszRealPath, const char * pszIndexPath, bool bEvenOdd = 0; bool bKnownFileType = false; - strcpy(szBuffer, pszSrvPath); + strncpy(szBuffer, pszSrvPath, SIZEOF(szBuffer)-1); char* pszTemp = strrchr(szBuffer, '/'); if (pszTemp) *pszTemp = '\0'; pszTemp = strrchr(szBuffer, '/'); if (pszTemp) - strcpy(szName, pszTemp + 1); + strncpy(szName, pszTemp + 1, SIZEOF(szName)-1); if (szName[0] == '\0') strcpy(szName, "my Miranda Webserver"); -- cgit v1.2.3