summaryrefslogtreecommitdiff
path: root/plugins/CmdLine/src/mimcmd_handlers.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-23 17:01:01 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-23 17:01:01 +0000
commitd5ee0fc23bdc1a194774591eb4ce63b8bebb8d6e (patch)
tree47da9333297ad6bd11d88762adba1ad5d55fa940 /plugins/CmdLine/src/mimcmd_handlers.cpp
parentab13aa962b5064fe85ec0562c04d16e8920e92e0 (diff)
replace strncat to mir_strncat
git-svn-id: http://svn.miranda-ng.org/main/trunk@13780 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CmdLine/src/mimcmd_handlers.cpp')
-rw-r--r--plugins/CmdLine/src/mimcmd_handlers.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/CmdLine/src/mimcmd_handlers.cpp b/plugins/CmdLine/src/mimcmd_handlers.cpp
index 70310a08b3..90c02c9d28 100644
--- a/plugins/CmdLine/src/mimcmd_handlers.cpp
+++ b/plugins/CmdLine/src/mimcmd_handlers.cpp
@@ -253,14 +253,14 @@ void HandleStatusCommand(PCommand command, TArgument *argv, int argc, PReply rep
INT_PTR status = CallProtoService(accounts[i]->szModuleName, PS_GETSTATUS, 0, 0);
PrettyStatusMode(status, pn, sizeof(pn));
- strncat(perAccountStatus, "\n", cPerAccountStatus - mir_strlen(perAccountStatus));
+ mir_strncat(perAccountStatus, "\n", cPerAccountStatus - mir_strlen(perAccountStatus));
char *account = mir_u2a((wchar_t *) accounts[i]->tszAccountName);
- strncat(perAccountStatus, account, cPerAccountStatus - mir_strlen(perAccountStatus));
+ mir_strncat(perAccountStatus, account, cPerAccountStatus - mir_strlen(perAccountStatus));
mir_free(account);
- strncat(perAccountStatus, ": ", cPerAccountStatus - mir_strlen(perAccountStatus));
- strncat(perAccountStatus, pn, cPerAccountStatus - mir_strlen(perAccountStatus));
+ mir_strncat(perAccountStatus, ": ", cPerAccountStatus - mir_strlen(perAccountStatus));
+ mir_strncat(perAccountStatus, pn, cPerAccountStatus - mir_strlen(perAccountStatus));
}
}
@@ -391,8 +391,8 @@ void HandleAwayMsgCommand(PCommand command, TArgument *argv, int argc, PReply re
if (i != 0)
{
- strncat(reply->message, "\n", reply->cMessage - mir_strlen(reply->message));
- strncat(reply->message, buffer, reply->cMessage - mir_strlen(reply->message));
+ mir_strncat(reply->message, "\n", reply->cMessage - mir_strlen(reply->message));
+ mir_strncat(reply->message, buffer, reply->cMessage - mir_strlen(reply->message));
}
else{
STRNCPY(reply->message, buffer, reply->cMessage);
@@ -918,8 +918,8 @@ void HandleMessageCommand(PCommand command, TArgument *argv, int argc, PReply re
STRNCPY(reply->message, buffer, reply->cMessage);
}
else {
- strncat(reply->message, "\n", reply->cMessage - mir_strlen(reply->message));
- strncat(reply->message, buffer, reply->cMessage - mir_strlen(reply->message));
+ mir_strncat(reply->message, "\n", reply->cMessage - mir_strlen(reply->message));
+ mir_strncat(reply->message, buffer, reply->cMessage - mir_strlen(reply->message));
}
}
}
@@ -1287,8 +1287,8 @@ void HandleProtocolProxyCommand(PCommand command, TArgument *argv, int argc, PRe
if (reply->message[0] != 0)
{
- strncat(reply->message, "\n", reply->cMessage - mir_strlen(reply->message));
- strncat(reply->message, buffer, reply->cMessage - mir_strlen(reply->message));
+ mir_strncat(reply->message, "\n", reply->cMessage - mir_strlen(reply->message));
+ mir_strncat(reply->message, buffer, reply->cMessage - mir_strlen(reply->message));
reply->message[reply->cMessage - 1] = 0;
}
else{
@@ -1455,8 +1455,8 @@ void HandleContactsCommand(PCommand command, TArgument *argv, int argc, PReply r
mir_snprintf(buffer, SIZEOF(buffer), "%s:[%s]:%s (%08d)", contact, id, protocol, hContact);
if (count)
{
- strncat(reply->message, "\n", reply->cMessage - mir_strlen(reply->message));
- strncat(reply->message, buffer, reply->cMessage - mir_strlen(reply->message));
+ mir_strncat(reply->message, "\n", reply->cMessage - mir_strlen(reply->message));
+ mir_strncat(reply->message, buffer, reply->cMessage - mir_strlen(reply->message));
}
else{
STRNCPY(reply->message, buffer, reply->cMessage);
@@ -1532,8 +1532,8 @@ void AddHistoryEvent(DBEVENTINFO *dbEvent, char *contact, PReply reply)
if (reply->message[0] != 0)
{
- strncat(reply->message, "\n", reply->cMessage - mir_strlen(reply->message));
- strncat(reply->message, buffer, reply->cMessage - mir_strlen(reply->message));
+ mir_strncat(reply->message, "\n", reply->cMessage - mir_strlen(reply->message));
+ mir_strncat(reply->message, buffer, reply->cMessage - mir_strlen(reply->message));
}
else{
STRNCPY(reply->message, buffer, reply->cMessage);
@@ -1586,8 +1586,8 @@ void HandleHistoryCommand(PCommand command, TArgument *argv, int argc, PReply re
mir_snprintf(buffer, SIZEOF(buffer), Translate("%s:%s - %d unread events."), contact, protocol, count);
if (contacts > 0) {
- strncat(reply->message, "\n", reply->cMessage - mir_strlen(reply->message));
- strncat(reply->message, buffer, reply->cMessage - mir_strlen(reply->message));
+ mir_strncat(reply->message, "\n", reply->cMessage - mir_strlen(reply->message));
+ mir_strncat(reply->message, buffer, reply->cMessage - mir_strlen(reply->message));
}
else STRNCPY(reply->message, buffer, reply->cMessage);