diff options
Diffstat (limited to 'plugins/Clist_mw')
-rw-r--r-- | plugins/Clist_mw/src/clcidents.cpp | 2 | ||||
-rw-r--r-- | plugins/Clist_mw/src/clcitems.cpp | 6 | ||||
-rw-r--r-- | plugins/Clist_mw/src/contact.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Clist_mw/src/clcidents.cpp b/plugins/Clist_mw/src/clcidents.cpp index 5bf82394f9..52efd81c30 100644 --- a/plugins/Clist_mw/src/clcidents.cpp +++ b/plugins/Clist_mw/src/clcidents.cpp @@ -121,7 +121,7 @@ void ClearClcContactCache(struct ClcData *dat,HANDLE hContact) tick = GetTickCount()-tick;
{
char buf[256];
- sprintf (buf,"Clear full cache %d ms\r\n",tick);
+ mir_snprintf(buf, SIZEOF(buf), "Clear full cache %d ms\r\n", tick);
OutputDebugStringA(buf);
}
}
diff --git a/plugins/Clist_mw/src/clcitems.cpp b/plugins/Clist_mw/src/clcitems.cpp index 35e76d189d..12b8e2304f 100644 --- a/plugins/Clist_mw/src/clcitems.cpp +++ b/plugins/Clist_mw/src/clcitems.cpp @@ -413,7 +413,7 @@ void RebuildEntireList(HWND hwnd,struct ClcData *dat) {
char buf[255];
//sprintf(buf,"%s %s took %i ms",__FILE__,__LINE__,tick);
- sprintf(buf,"RebuildEntireList %d \r\n",tick);
+ mir_snprintf(buf, SIZEOF(buf), "RebuildEntireList %d \r\n", tick);
OutputDebugStringA(buf);
db_set_dw((HANDLE)0,"CLUI","PF:Last RebuildEntireList Time:",tick);
@@ -503,7 +503,7 @@ void SortCLC(HWND hwnd,struct ClcData *dat,int useInsertionSort) //sprintf(buf,"%s %s took %i ms",__FILE__,__LINE__,tick);
tick = GetTickCount()-tick;
if (tick > 5) {
- sprintf(buf,"SortCLC %d \r\n",tick);
+ mir_snprintf(buf, SIZEOF(buf), "SortCLC %d \r\n", tick);
OutputDebugStringA(buf);
db_set_dw((HANDLE)0,"CLUI","PF:Last SortCLC Time:",tick);
}
@@ -674,7 +674,7 @@ void SaveStateAndRebuildList(HWND hwnd,struct ClcData *dat) {
char buf[255];
//sprintf(buf,"%s %s took %i ms",__FILE__,__LINE__,tick);
- sprintf(buf,"SaveStateAndRebuildList %d \r\n",tick);
+ mir_snprintf(buf, SIZEOF(buf), "SaveStateAndRebuildList %d \r\n", tick);
OutputDebugStringA(buf);
}
diff --git a/plugins/Clist_mw/src/contact.cpp b/plugins/Clist_mw/src/contact.cpp index 4015a1b997..12a82ba2d5 100644 --- a/plugins/Clist_mw/src/contact.cpp +++ b/plugins/Clist_mw/src/contact.cpp @@ -102,7 +102,7 @@ void LoadContactTree(void) tick = GetTickCount()-tick;
char buf[255];
- sprintf(buf,"LoadContactTree %d \r\n",tick);
+ mir_snprintf(buf, SIZEOF(buf), "LoadContactTree %d \r\n", tick);
OutputDebugStringA(buf);
}
|