From 5dc51ceb648ec73ed9b4027ec5beee69f57f0c7d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Mar 2013 20:54:25 +0000 Subject: fix for mir_urlEncode() git-svn-id: http://svn.miranda-ng.org/main/trunk@4191 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/http.cpp | 6 +++--- 1 file 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 -- cgit v1.2.3