summaryrefslogtreecommitdiff
path: root/plugins/MirOTR
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirOTR')
-rw-r--r--plugins/MirOTR/src/dbfilter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MirOTR/src/dbfilter.cpp b/plugins/MirOTR/src/dbfilter.cpp
index d8e1f8524e..57ff93e159 100644
--- a/plugins/MirOTR/src/dbfilter.cpp
+++ b/plugins/MirOTR/src/dbfilter.cpp
@@ -133,7 +133,7 @@ int OnDatabaseEventPreAdd(WPARAM hContact, LPARAM lParam)
mir_strncat(newmsg, msg, alloclen + datalen - mir_strlen(newmsg));
wchar_t *p = (wchar_t*) newmsg + (msglen + prefixlen + 1);
wcsncpy(p, prefixw, prefixlenw);
- wcsncat(p, msgw, msglenw - mir_wstrlen(p));
+ mir_wstrncat(p, msgw, msglenw - mir_wstrlen(p));
mir_free(prefix);
mir_free(prefixw);
// append additional data