summaryrefslogtreecommitdiff
path: root/plugins/HTTPServer/src
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-05-29 22:23:58 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-05-29 22:23:58 +0000
commit1b0c3c60a9994b61fd9490dd373c49fd5ad83162 (patch)
tree3d05d2a59b45756d22b236de565250673f7fa736 /plugins/HTTPServer/src
parent6b325192ae0a7764c231f1c5b7a4cee3f240f0a7 (diff)
minor optimisation
git-svn-id: http://svn.miranda-ng.org/main/trunk@13904 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HTTPServer/src')
-rw-r--r--plugins/HTTPServer/src/IndexHTML.cpp2
-rw-r--r--plugins/HTTPServer/src/IndexXML.cpp2
2 files changed, 2 insertions, 2 deletions
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);