diff options
Diffstat (limited to 'plugins/Ping/src/pinglist.cpp')
-rw-r--r-- | plugins/Ping/src/pinglist.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Ping/src/pinglist.cpp b/plugins/Ping/src/pinglist.cpp index 517e984490..1151ba37f6 100644 --- a/plugins/Ping/src/pinglist.cpp +++ b/plugins/Ping/src/pinglist.cpp @@ -57,7 +57,7 @@ INT_PTR GetListSize(WPARAM wParam, LPARAM lParam) void write_ping_address(PINGADDRESS &i)
{
char buff[16];
- sprintf(buff, "PING_DEST_%d", i.index);
+ mir_snprintf(buff, SIZEOF(buff), "PING_DEST_%d", i.index);
if(i.item_id == 0) {
i.item_id = NextID++;
@@ -99,7 +99,7 @@ void write_ping_addresses() do {
found = false;
- sprintf(buff, "PING_DEST_%d", index++);
+ mir_snprintf(buff, SIZEOF(buff), "PING_DEST_%d", index++);
if(db_get_dw(0, buff, "Id", 0) != 0) {
found = true;
db_set_dw(0, buff, "Id", 0);
@@ -111,7 +111,7 @@ bool read_ping_address(PINGADDRESS &pa) { int index = pa.index;
char buff[16];
- sprintf(buff, "PING_DEST_%d", index);
+ mir_snprintf(buff, SIZEOF(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;
|