summaryrefslogtreecommitdiff
path: root/plugins/MyDetails/src/data.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-16 17:11:02 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-16 17:11:02 +0000
commitbb4a25ee1fb590c3fc84177d3c9518add8ac0c58 (patch)
tree5a1ada25953df7d73df6e4d434e2a94dc2a345fc /plugins/MyDetails/src/data.cpp
parent7a514de5df654c9fe1d26c889f4317b5650f84ec (diff)
cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@13623 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails/src/data.cpp')
-rw-r--r--plugins/MyDetails/src/data.cpp6
1 files changed, 3 insertions, 3 deletions
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';
}