summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-25 20:54:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-25 20:54:25 +0000
commit5dc51ceb648ec73ed9b4027ec5beee69f57f0c7d (patch)
tree17244ffebf06a9840e188899f19c50307c7a4ceb /src
parent5a3fa95fbe1930c035cd1adffee0792b7d1d8846 (diff)
fix for mir_urlEncode()
git-svn-id: http://svn.miranda-ng.org/main/trunk@4191 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/http.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mir_core/http.cpp b/src/mir_core/http.cpp
index aa977fee45..da01fe11d8 100644
--- a/src/mir_core/http.cpp
+++ b/src/mir_core/http.cpp
@@ -26,9 +26,9 @@ MIR_CORE_DLL(char*) mir_urlEncode(const char *szUrl)
if (szUrl == NULL)
return NULL;
- const char *s;
+ const BYTE *s;
int outputLen;
- for (outputLen = 0, s = szUrl; *s; s++) {
+ for (outputLen = 0, s = (const BYTE*)szUrl; *s; s++) {
if (('0' <= *s && *s <= '9') || //0-9
('A' <= *s && *s <= 'Z') || //ABC...XYZ
('a' <= *s && *s <= 'z') || //abc...xyz
@@ -41,7 +41,7 @@ MIR_CORE_DLL(char*) mir_urlEncode(const char *szUrl)
return NULL;
char *d = szOutput;
- for (s = szUrl; *s; s++) {
+ for (s = (const BYTE*)szUrl; *s; s++) {
if (('0' <= *s && *s <= '9') || //0-9
('A' <= *s && *s <= 'Z') || //ABC...XYZ
('a' <= *s && *s <= 'z') || //abc...xyz