summaryrefslogtreecommitdiff
path: root/plugins/HTTPServer
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-23 16:25:49 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-23 16:25:49 +0000
commitf2de79cb2eb8247548650ee80d75be109ac66ee7 (patch)
tree5f6ae43436ad92857bc3361556e581dea0a28270 /plugins/HTTPServer
parent83810fbdf96dc0a842bf149cfa40749e95b0fe63 (diff)
replace strcat to mir_strcat
git-svn-id: http://svn.miranda-ng.org/main/trunk@13777 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HTTPServer')
-rw-r--r--plugins/HTTPServer/src/GuiElements.cpp4
-rw-r--r--plugins/HTTPServer/src/IndexHTML.cpp2
-rw-r--r--plugins/HTTPServer/src/MimeHandling.cpp2
-rw-r--r--plugins/HTTPServer/src/main.cpp4
4 files changed, 6 insertions, 6 deletions
diff --git a/plugins/HTTPServer/src/GuiElements.cpp b/plugins/HTTPServer/src/GuiElements.cpp
index d936a59018..b2b67837ee 100644
--- a/plugins/HTTPServer/src/GuiElements.cpp
+++ b/plugins/HTTPServer/src/GuiElements.cpp
@@ -322,7 +322,7 @@ UINT_PTR CALLBACK ShareNewFileDialogHook(
memmove(&szSelection[1], pszFolder, mir_strlen(pszFolder) + 1);
szSelection[0] = '/';
if (szSelection[mir_strlen(szSelection)-1] != '/')
- strcat(szSelection, "/");
+ mir_strcat(szSelection, "/");
// only write to IDC_SHARE_NAME when a file / other folder was selected before
if (!mir_strcmp(szSelection, pstShare->pszSrvPath))
@@ -353,7 +353,7 @@ UINT_PTR CALLBACK ShareNewFileDialogHook(
if (pszTmp) {
*pszTmp = '\0';
if (pstShare->pszSrvPath[mir_strlen(pstShare->pszSrvPath)-1] != '/')
- strcat(pstShare->pszSrvPath, "/");
+ mir_strcat(pstShare->pszSrvPath, "/");
} else {
if (pstShare->pszSrvPath[mir_strlen(pstShare->pszSrvPath)-1] == '/')
pstShare->pszSrvPath[mir_strlen(pstShare->pszSrvPath)-1] = '\0';
diff --git a/plugins/HTTPServer/src/IndexHTML.cpp b/plugins/HTTPServer/src/IndexHTML.cpp
index 222e1bca5c..7df0e566fb 100644
--- a/plugins/HTTPServer/src/IndexHTML.cpp
+++ b/plugins/HTTPServer/src/IndexHTML.cpp
@@ -376,7 +376,7 @@ bool bCreateIndexHTML(const char * pszRealPath, const char * pszIndexPath,
*pszTmp = '+';*/
if (*pszPos == SY_FOR_DIRS) { // For Directories
- strcat(szURL, "/");
+ mir_strcat(szURL, "/");
} else { // For Files
iFileSize = fdFindFileData.nFileSizeLow;
ftFileCreateTime = fdFindFileData.ftCreationTime;
diff --git a/plugins/HTTPServer/src/MimeHandling.cpp b/plugins/HTTPServer/src/MimeHandling.cpp
index 12a45f1946..85aa0a1312 100644
--- a/plugins/HTTPServer/src/MimeHandling.cpp
+++ b/plugins/HTTPServer/src/MimeHandling.cpp
@@ -16,7 +16,7 @@ int bInitMimeHandling() {
char szBuf[10000];
mir_strcpy(szBuf, szPluginPath);
- strcat(szBuf, szMimeTypeConfigFile);
+ mir_strcat(szBuf, szMimeTypeConfigFile);
mimeDB = fopen(szBuf, "r");
if (mimeDB != NULL) {
diff --git a/plugins/HTTPServer/src/main.cpp b/plugins/HTTPServer/src/main.cpp
index 5923287f17..9d596d3b10 100644
--- a/plugins/HTTPServer/src/main.cpp
+++ b/plugins/HTTPServer/src/main.cpp
@@ -230,7 +230,7 @@ bool bReadConfigurationFile() {
char szBuf[1000];
mir_strcpy(szBuf, szPluginPath);
- strcat(szBuf, szConfigFile);
+ mir_strcat(szBuf, szConfigFile);
HANDLE hFile = CreateFile(szBuf, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (hFile == INVALID_HANDLE_VALUE)
@@ -330,7 +330,7 @@ bool bWriteConfigurationFile() {
CLFileShareListAccess clCritSection;
char szBuf[1000];
mir_strcpy(szBuf, szPluginPath);
- strcat(szBuf, szConfigFile);
+ mir_strcat(szBuf, szConfigFile);
HANDLE hFile = CreateFile(szBuf, GENERIC_WRITE, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
if (hFile == INVALID_HANDLE_VALUE) {
TCHAR temp[200];