X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4860d40db4a78d8c2fd20d0b7b75136d749050eb..ce76f779c6cfd2155de825021cc645572fe43625:/src/common/uri.cpp?ds=inline diff --git a/src/common/uri.cpp b/src/common/uri.cpp index 0f03cf5aa5..d7e42961a9 100644 --- a/src/common/uri.cpp +++ b/src/common/uri.cpp @@ -115,10 +115,9 @@ const wxChar* wxURI::Create(const wxString& uri) wxChar wxURI::TranslateEscape(const wxChar* s) { - wxASSERT_MSG(IsHex(*s) && IsHex(*(s+1)), wxT("Invalid escape!")); + wxASSERT_MSG( IsHex(s[0]) && IsHex(s[1]), wxT("Invalid escape sequence!")); - //<<4 == 16 - return (wxChar)( CharToHex(*s) << 4 ) | CharToHex(*++s); + return (wxChar)( CharToHex(s[0]) << 4 ) | CharToHex(s[1]); } wxString wxURI::Unescape(const wxString& uri)