From bb4a25ee1fb590c3fc84177d3c9518add8ac0c58 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 16 May 2015 17:11:02 +0000 Subject: cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@13623 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MyDetails/src/data.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/MyDetails/src/data.cpp') diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp index ff55810448..52111dadcb 100644 --- a/plugins/MyDetails/src/data.cpp +++ b/plugins/MyDetails/src/data.cpp @@ -427,7 +427,7 @@ Protocol *ProtocolArray::Get(const char *name) return NULL; for (int i = 0; i < buffer_len; i++) - if (strcmp(name, buffer[i]->name) == 0) + if (mir_strcmp(name, buffer[i]->name) == 0) return buffer[i]; return NULL; @@ -522,7 +522,7 @@ void ProtocolArray::GetDefaultNick() { ptrT tszNick(db_get_tsa(0, MODULE_NAME, SETTING_DEFAULT_NICK)); if (tszNick) - _tcsncpy_s(default_nick, tszNick, _TRUNCATE); + mir_tstrncpy(default_nick, tszNick, SIZEOF(default_nick)); else default_nick[0] = '\0'; } @@ -531,7 +531,7 @@ void ProtocolArray::GetDefaultAvatar() { ptrT tszFile(db_get_tsa(0, "ContactPhoto", "File")); if (tszFile) - _tcsncpy_s(default_avatar_file, tszFile, _TRUNCATE); + mir_tstrncpy(default_avatar_file, tszFile, SIZEOF(default_avatar_file)); else default_avatar_file[0] = '\0'; } -- cgit v1.2.3