From b7c74cd5b22618d544a3f4ae124985d4837e3a22 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Jun 2015 22:12:13 +0000 Subject: new mir_snprintf templates without SIZEOF git-svn-id: http://svn.miranda-ng.org/main/trunk@14002 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Ping/src/pinglist.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Ping/src/pinglist.cpp') diff --git a/plugins/Ping/src/pinglist.cpp b/plugins/Ping/src/pinglist.cpp index e3a0e7b6bb..cbd590c503 100644 --- a/plugins/Ping/src/pinglist.cpp +++ b/plugins/Ping/src/pinglist.cpp @@ -55,7 +55,7 @@ INT_PTR GetListSize(WPARAM, LPARAM) void write_ping_address(PINGADDRESS &i) { char buff[16]; - mir_snprintf(buff, SIZEOF(buff), "PING_DEST_%d", i.index); + mir_snprintf(buff, "PING_DEST_%d", i.index); if (i.item_id == 0) { i.item_id = NextID++; @@ -97,7 +97,7 @@ void write_ping_addresses() do { found = false; - mir_snprintf(buff, SIZEOF(buff), "PING_DEST_%d", index++); + mir_snprintf(buff, "PING_DEST_%d", index++); if (db_get_dw(0, buff, "Id", 0) != 0) { found = true; db_set_dw(0, buff, "Id", 0); @@ -109,7 +109,7 @@ bool read_ping_address(PINGADDRESS &pa) { int index = pa.index; char buff[16]; - mir_snprintf(buff, SIZEOF(buff), "PING_DEST_%d", index); + mir_snprintf(buff, "PING_DEST_%d", index); // return if not more contacts, or only deleted contacts remaining if ((pa.item_id = db_get_dw(0, buff, "Id", 0)) == 0) return false; -- cgit v1.2.3