summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-04-10 09:25:38 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-04-10 09:25:38 +0000
commitba06deac7058a716d63803d2840534a6da974231 (patch)
tree3041afed1e3951430c8af0056178d5ab53811424 /src
parentc7c6cf53887f9c4c7f7bf436a86b973ef91dd6ba (diff)
nasty crutch to allow db_get_tstatic to work correctly
git-svn-id: http://svn.miranda-ng.org/main/trunk@16620 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/src/utf.cpp2
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)) {