summaryrefslogtreecommitdiff
path: root/plugins/DbEditorPP
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-04 22:12:13 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-04 22:12:13 +0000
commitb7c74cd5b22618d544a3f4ae124985d4837e3a22 (patch)
tree468d9610a590685322ad2159a9bd2d9e2ba83f89 /plugins/DbEditorPP
parent7de513f180c429859e246d1033d745b394e1fc28 (diff)
new mir_snprintf templates without SIZEOF
git-svn-id: http://svn.miranda-ng.org/main/trunk@14002 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbEditorPP')
-rw-r--r--plugins/DbEditorPP/src/addeditsettingsdlg.cpp2
-rw-r--r--plugins/DbEditorPP/src/exportimport.cpp2
-rw-r--r--plugins/DbEditorPP/src/findwindow.cpp6
-rw-r--r--plugins/DbEditorPP/src/settinglist.cpp6
-rw-r--r--plugins/DbEditorPP/src/watchedvars.cpp2
5 files changed, 9 insertions, 9 deletions
diff --git a/plugins/DbEditorPP/src/addeditsettingsdlg.cpp b/plugins/DbEditorPP/src/addeditsettingsdlg.cpp
index 4a4cdc8cd8..52c14c0f32 100644
--- a/plugins/DbEditorPP/src/addeditsettingsdlg.cpp
+++ b/plugins/DbEditorPP/src/addeditsettingsdlg.cpp
@@ -231,7 +231,7 @@ INT_PTR CALLBACK EditSettingDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l
for (j = 0; j < len; j++)
{
- mir_snprintf(tmp, SIZEOF(tmp), "%02X ", (BYTE)p[j]);
+ mir_snprintf(tmp, "%02X ", (BYTE)p[j]);
mir_strcat(data, tmp);
}
diff --git a/plugins/DbEditorPP/src/exportimport.cpp b/plugins/DbEditorPP/src/exportimport.cpp
index 9c07ce46b7..25d1d4779a 100644
--- a/plugins/DbEditorPP/src/exportimport.cpp
+++ b/plugins/DbEditorPP/src/exportimport.cpp
@@ -91,7 +91,7 @@ void exportModule(MCONTACT hContact, char *module, FILE *file)
data[0] = '\0';
for (int j = 0; j < dbv.cpbVal; j++) {
char tmp[16];
- mir_snprintf(tmp, SIZEOF(tmp), "%02X ", (BYTE)dbv.pbVal[j]);
+ mir_snprintf(tmp, "%02X ", (BYTE)dbv.pbVal[j]);
mir_strcat(data, tmp);
}
fprintf(file, "\n%s=n%s", setting->name, data);
diff --git a/plugins/DbEditorPP/src/findwindow.cpp b/plugins/DbEditorPP/src/findwindow.cpp
index d05f2b8cef..ee86cba930 100644
--- a/plugins/DbEditorPP/src/findwindow.cpp
+++ b/plugins/DbEditorPP/src/findwindow.cpp
@@ -612,11 +612,11 @@ void __cdecl FindSettings(LPVOID di)
if (mode) {
if (!replace[0])
- mir_snprintf(szTmp, SIZEOF(szTmp), Translate("Finished. %d items were found, %d items were deleted."), foundCount, replaceCount);
+ mir_snprintf(szTmp, Translate("Finished. %d items were found, %d items were deleted."), foundCount, replaceCount);
else
- mir_snprintf(szTmp, SIZEOF(szTmp), Translate("Finished. %d items were found, %d items were replaced."), foundCount, replaceCount);
+ mir_snprintf(szTmp, Translate("Finished. %d items were found, %d items were replaced."), foundCount, replaceCount);
}
- else mir_snprintf(szTmp, SIZEOF(szTmp), Translate("Finished. %d items were found."), foundCount);
+ else mir_snprintf(szTmp, Translate("Finished. %d items were found."), foundCount);
SendDlgItemMessage(prnthwnd, IDC_SBAR, SB_SETTEXT, 0, (LPARAM)szTmp);
diff --git a/plugins/DbEditorPP/src/settinglist.cpp b/plugins/DbEditorPP/src/settinglist.cpp
index a0f080a974..2f903bb431 100644
--- a/plugins/DbEditorPP/src/settinglist.cpp
+++ b/plugins/DbEditorPP/src/settinglist.cpp
@@ -32,7 +32,7 @@ void saveListSettings(HWND hwnd2List)
for (int i = 0; i <= 3; i++)
if (ListView_GetColumn(hwnd2List, i, &sLC)) {
- mir_snprintf(tmp, SIZEOF(tmp), "Column%dwidth", i);
+ mir_snprintf(tmp, "Column%dwidth", i);
db_set_w(NULL, modname, tmp, (WORD)sLC.cx);
}
}
@@ -122,7 +122,7 @@ void additem(HWND hwnd2Settings, MCONTACT hContact, char* module, char* setting,
data[0] = '\0';
for (int j = 0; j < dbv.cpbVal; j++) {
char tmp[16];
- mir_snprintf(tmp, SIZEOF(tmp), "%02X ", (BYTE)dbv.pbVal[j]);
+ mir_snprintf(tmp, "%02X ", (BYTE)dbv.pbVal[j]);
mir_strcat(data, tmp);
}
lvi.iImage = 0;
@@ -624,7 +624,7 @@ void EditLabel(HWND hwnd2List, int item, int subitem)
data[0] = '\0';
for (j = 0; j < dbv.cpbVal; j++) {
- mir_snprintf(tmp, SIZEOF(tmp), "%02X ", (BYTE)dbv.pbVal[j]);
+ mir_snprintf(tmp, "%02X ", (BYTE)dbv.pbVal[j]);
mir_strcat(data, tmp);
}
diff --git a/plugins/DbEditorPP/src/watchedvars.cpp b/plugins/DbEditorPP/src/watchedvars.cpp
index 7474835c98..4059035738 100644
--- a/plugins/DbEditorPP/src/watchedvars.cpp
+++ b/plugins/DbEditorPP/src/watchedvars.cpp
@@ -92,7 +92,7 @@ void addwatchtolist(HWND hwnd2list, struct DBsetting *lParam)
for (j = 0; j < dbv->cpbVal; j++)
{
char tmp[16];
- mir_snprintf(tmp, SIZEOF(tmp), "%02X ", (BYTE)dbv->pbVal[j]);
+ mir_snprintf(tmp, "%02X ", (BYTE)dbv->pbVal[j]);
mir_strcat(data, tmp);
}
ListView_SetItemText(hwnd2list, index, 4, data);