From 6fcfba2c46a456677b5825a899469ba4e8905448 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 23 May 2015 17:49:58 +0000 Subject: replace strncpy to mir_strncpy git-svn-id: http://svn.miranda-ng.org/main/trunk@13785 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/src/dynstuff.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Gadu-Gadu/src/dynstuff.cpp') diff --git a/protocols/Gadu-Gadu/src/dynstuff.cpp b/protocols/Gadu-Gadu/src/dynstuff.cpp index 4d21ed7eb0..e84273f6a3 100644 --- a/protocols/Gadu-Gadu/src/dynstuff.cpp +++ b/protocols/Gadu-Gadu/src/dynstuff.cpp @@ -247,7 +247,7 @@ int string_append_n(string_t s, const char *str, int count) string_realloc(s, s->len + count); s->str[s->len + count] = 0; - strncpy(s->str + s->len, str, count); + mir_strncpy(s->str + s->len, str, count); s->len += count; @@ -480,7 +480,7 @@ char **array_make(const char *string, const char *sep, int max, int trim, int qu } else { for (q = p, len = 0; *q && (last || !strchr(sep, *q)); q++, len++); token = (char*)calloc(1, len + 1); - strncpy(token, p, len); + mir_strncpy(token, p, len); token[len] = 0; p = q; } -- cgit v1.2.3