summaryrefslogtreecommitdiff
path: root/plugins/FavContacts
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-07-25 20:15:05 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-07-25 20:15:05 +0000
commit9d32b9cd791fb5f51dad17567152c70a8511a500 (patch)
treefd7aa3250ed409e720f26c341c0a5d736ed8083c /plugins/FavContacts
parent125a25c86eed41352d45eb8fb6f994f65700c3ec (diff)
replace sprintf to mir_snprintf (part 6)
git-svn-id: http://svn.miranda-ng.org/main/trunk@5485 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FavContacts')
-rw-r--r--plugins/FavContacts/src/http_api.cpp2
-rw-r--r--plugins/FavContacts/src/main.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/FavContacts/src/http_api.cpp b/plugins/FavContacts/src/http_api.cpp
index 0806cddcd9..18bae918ee 100644
--- a/plugins/FavContacts/src/http_api.cpp
+++ b/plugins/FavContacts/src/http_api.cpp
@@ -104,7 +104,7 @@ public:
void Send(int i)
{
char buf[32];
- wsprintfA(buf, "%d", i);
+ mir_snprintf(buf, SIZEOF(buf), "%d", i);
Send(buf);
}
diff --git a/plugins/FavContacts/src/main.cpp b/plugins/FavContacts/src/main.cpp
index f49a580c55..2350138fdd 100644
--- a/plugins/FavContacts/src/main.cpp
+++ b/plugins/FavContacts/src/main.cpp
@@ -355,7 +355,7 @@ static bool sttIsGroup(int id)
DBVARIANT dbv = {0};
char buf[32];
- wsprintfA(buf, "%d", (int)(id-2));
+ mir_snprintf(buf, SIZEOF(buf), "%d", (int)(id - 2));
if (!db_get_ts(NULL, "CListGroups", buf, &dbv))
{
db_free(&dbv);
@@ -375,7 +375,7 @@ static TCHAR *sttGetGroupName(int id)
DBVARIANT dbv = {0};
char buf[32];
- wsprintfA(buf, "%d", (int)(id-2));
+ mir_snprintf(buf, SIZEOF(buf), "%d", (int)(id - 2));
if (!db_get_ts(NULL, "CListGroups", buf, &dbv))
{
TCHAR *res = mir_tstrdup(dbv.ptszVal+1);
@@ -391,7 +391,7 @@ static int sttGetGroupId(TCHAR *name)
{
DBVARIANT dbv = {0};
char buf[32];
- wsprintfA(buf, "%d", (int)i);
+ mir_snprintf(buf, SIZEOF(buf), "%d", (int)i);
if (!db_get_ts(NULL, "CListGroups", buf, &dbv))
{
if (!lstrcmp(dbv.ptszVal+1, name))