diff options
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/utf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/src/utf.cpp b/src/mir_core/src/utf.cpp index b0240b28ec..d6050f81f4 100644 --- a/src/mir_core/src/utf.cpp +++ b/src/mir_core/src/utf.cpp @@ -207,7 +207,7 @@ static int Utf8toUcs2Len(const char *src, size_t srclen) MIR_CORE_DLL(int) Utf8toUcs2(const char *src, size_t srclen, wchar_t *dst, size_t dstlen)
{
unsigned int res;
- const char *srcend = src + srclen;
+ const char *srcend = src + srclen; // including trailing zero
wchar_t *dstend = dst + dstlen;
while ((dst < dstend) && (src < srcend)) {
|