diff options
Diffstat (limited to 'plugins/HTTPServer/src')
| -rw-r--r-- | plugins/HTTPServer/src/FileShareNode.cpp | 4 | ||||
| -rw-r--r-- | plugins/HTTPServer/src/GuiElements.cpp | 2 | ||||
| -rw-r--r-- | plugins/HTTPServer/src/HttpUser.cpp | 2 | 
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/HTTPServer/src/FileShareNode.cpp b/plugins/HTTPServer/src/FileShareNode.cpp index d2e9f62731..a5b57ecc14 100644 --- a/plugins/HTTPServer/src/FileShareNode.cpp +++ b/plugins/HTTPServer/src/FileShareNode.cpp @@ -207,11 +207,11 @@ bool CLFileShareNode::bSetPaths(char * pszSrvPath, char * pszRealPath) {  	delete [] st.pszSrvPath;
  	delete [] st.pszRealPath;
 -	st.dwMaxSrvPath = strlen(pszSrvPath) + 1;
 +	st.dwMaxSrvPath = (int)strlen(pszSrvPath) + 1;
  	st.pszSrvPath = new char[ st.dwMaxSrvPath ];
  	strcpy(st.pszSrvPath, pszSrvPath);
 -	int nRealLen = strlen(pszRealPath);
 +	int nRealLen = (int)strlen(pszRealPath);
  	if (nRealLen <= 2 || !(pszRealPath[1] == ':' ||
  	    (pszRealPath[0] == '\\' && pszRealPath[1] == '\\'))) {
  		// Relative path
 diff --git a/plugins/HTTPServer/src/GuiElements.cpp b/plugins/HTTPServer/src/GuiElements.cpp index 9af17158e9..be3233c174 100644 --- a/plugins/HTTPServer/src/GuiElements.cpp +++ b/plugins/HTTPServer/src/GuiElements.cpp @@ -63,7 +63,7 @@ string sPageKeyword = szDefaultPageKeyword;  void ReplaceAll(string &sSrc, const char * pszReplace, const string &sNew) {
  	string::size_type nCur = 0;
 -	int nRepalceLen = strlen(pszReplace);
 +	int nRepalceLen = (int)strlen(pszReplace);
  	while ((nCur = sSrc.find(pszReplace, nCur)) != sSrc.npos) {
  		sSrc.replace(nCur, nRepalceLen, sNew);
  		nCur += sNew.size();
 diff --git a/plugins/HTTPServer/src/HttpUser.cpp b/plugins/HTTPServer/src/HttpUser.cpp index 475765f495..a565289ba7 100644 --- a/plugins/HTTPServer/src/HttpUser.cpp +++ b/plugins/HTTPServer/src/HttpUser.cpp @@ -183,7 +183,7 @@ bool CLHttpUser::bReadGetParameters(char * pszRequest) {  		pszRequest[0] = 0;
  		pszRequest++;
  		for (int nCur = 0; nCur < eLastParam ; nCur++) {
 -			int nLen = strlen(szParmStr[nCur]);
 +			int nLen = (int)strlen(szParmStr[nCur]);
  			if (strncmp(pszRequest, szParmStr[nCur], nLen) == 0) {
  				if (apszParam[nCur]) {
  					bRet = false;
  | 
