diff options
Diffstat (limited to 'plugins/FavContacts/src')
| -rw-r--r-- | plugins/FavContacts/src/http_api.cpp | 2 | ||||
| -rw-r--r-- | plugins/FavContacts/src/main.cpp | 6 | 
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))
  | 
