From 1b0c3c60a9994b61fd9490dd373c49fd5ad83162 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Fri, 29 May 2015 22:23:58 +0000 Subject: minor optimisation git-svn-id: http://svn.miranda-ng.org/main/trunk@13904 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HTTPServer/src/IndexHTML.cpp | 2 +- plugins/HTTPServer/src/IndexXML.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/HTTPServer/src') diff --git a/plugins/HTTPServer/src/IndexHTML.cpp b/plugins/HTTPServer/src/IndexHTML.cpp index fb554acd65..6170657766 100644 --- a/plugins/HTTPServer/src/IndexHTML.cpp +++ b/plugins/HTTPServer/src/IndexHTML.cpp @@ -282,7 +282,7 @@ bool bCreateIndexHTML(const char * pszRealPath, const char * pszIndexPath, // check if directory exists char szMask[MAX_PATH]; - mir_snprintf(szMask, _countof(szMask), "%s%s", pszRealPath, "*"); + mir_snprintf(szMask, _countof(szMask), "%s*", pszRealPath); WIN32_FIND_DATAA fdFindFileData; HANDLE hFind = FindFirstFile(szMask, &fdFindFileData); diff --git a/plugins/HTTPServer/src/IndexXML.cpp b/plugins/HTTPServer/src/IndexXML.cpp index a1006d5a69..6a4e232798 100644 --- a/plugins/HTTPServer/src/IndexXML.cpp +++ b/plugins/HTTPServer/src/IndexXML.cpp @@ -64,7 +64,7 @@ static void ReplaceSign(char* pszSrc, int MaxLength, const char pszReplace, bool bCreateIndexXML(const char * pszRealPath, const char * pszIndexPath, const char * pszSrvPath, DWORD dwRemoteIP) { char szMask[MAX_PATH+1]; - mir_snprintf(szMask, _countof(szMask), "%s%s", pszRealPath, "*"); + mir_snprintf(szMask, _countof(szMask), "%s*", pszRealPath); WIN32_FIND_DATAA fdFindFileData; HANDLE hFind = FindFirstFile(szMask, &fdFindFileData); -- cgit v1.2.3