From 9d32b9cd791fb5f51dad17567152c70a8511a500 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 25 Jul 2013 20:15:05 +0000 Subject: replace sprintf to mir_snprintf (part 6) git-svn-id: http://svn.miranda-ng.org/main/trunk@5485 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FavContacts/src/http_api.cpp | 2 +- plugins/FavContacts/src/main.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/FavContacts/src') 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)) -- cgit v1.2.3