diff --git a/src/common/wxcrt.cpp b/src/common/wxcrt.cpp index c131cec80d..8437ce6ff6 100644 --- a/src/common/wxcrt.cpp +++ b/src/common/wxcrt.cpp @@ -1256,7 +1256,7 @@ int wxVsscanf(const wxCStrData& str, const wchar_t *format, va_list ap) #define ANDROID_WCSTO_END \ if(endptr) { \ if(dstendp) \ - *endptr = (wchar_t*)(nptr + (dstendp - dst) * sizeof(wchar_t)); \ + *endptr = (wchar_t*)(nptr + (dstendp - dst)); \ else \ *endptr = NULL; \ } \