summaryrefslogtreecommitdiff
path: root/plugins/MirOTR
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirOTR')
-rw-r--r--plugins/MirOTR/src/dbfilter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirOTR/src/dbfilter.cpp b/plugins/MirOTR/src/dbfilter.cpp
index fa65dd8ddc..b3078c0c8d 100644
--- a/plugins/MirOTR/src/dbfilter.cpp
+++ b/plugins/MirOTR/src/dbfilter.cpp
@@ -91,7 +91,7 @@ int OnDatabaseEventPreAdd(WPARAM hContact, LPARAM lParam)
newmsg = (char*)mir_alloc(alloclen);
memset(newmsg, 0, alloclen+datalen);
strncpy(newmsg, options.prefix, prefixlen);
- strncat(newmsg, msg, alloclen - mir_strlen(newmsg));
+ mir_strncat(newmsg, msg, alloclen - mir_strlen(newmsg));
// append additional data
if (datalen) {
memcpy(newmsg+alloclen, msg+len2, datalen);
@@ -130,7 +130,7 @@ int OnDatabaseEventPreAdd(WPARAM hContact, LPARAM lParam)
newmsg = (char*)mir_alloc(alloclen+datalen);
memset(newmsg, 0, alloclen+datalen);
strncpy(newmsg, prefix, prefixlen);
- strncat(newmsg, msg, alloclen + datalen - mir_strlen(newmsg));
+ 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));
@@ -158,7 +158,7 @@ int OnDatabaseEventPreAdd(WPARAM hContact, LPARAM lParam)
newmsg = (char*)mir_alloc(alloclen+datalen);
memset(newmsg, 0, alloclen+datalen);
strncpy(newmsg, prefix, prefixlen);
- strncat(newmsg, msg, msglen - mir_strlen(newmsg));
+ mir_strncat(newmsg, msg, msglen - mir_strlen(newmsg));
mir_free(prefix);
// append additional data
if (datalen) {