summaryrefslogtreecommitdiff
path: root/plugins/New_GPG
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-08 22:13:57 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-08 22:13:57 +0000
commit13eb83bea655c3302c74a82d826d75bceb9232a2 (patch)
treeea992cbd9002e078a06e9fe65a73698eec4fbc22 /plugins/New_GPG
parentef741fcb36d679b094e44d01714f423c34357383 (diff)
code cleanup around mir_snprintf
git-svn-id: http://svn.miranda-ng.org/main/trunk@11285 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/New_GPG')
-rwxr-xr-xplugins/New_GPG/src/utilities.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/New_GPG/src/utilities.cpp b/plugins/New_GPG/src/utilities.cpp
index 25cd58230b..9b8aec3b3e 100755
--- a/plugins/New_GPG/src/utilities.cpp
+++ b/plugins/New_GPG/src/utilities.cpp
@@ -1413,21 +1413,21 @@ void ExportGpGKeysFunc(int type)
case DBVT_BYTE:
{
char _id[64];
- mir_snprintf(_id, 64, "%d", dbv.bVal);
+ mir_snprintf(_id, SIZEOF(_id), "%d", dbv.bVal);
id += _id;
}
break;
case DBVT_WORD:
{
char _id[64];
- mir_snprintf(_id, 64, "%d", dbv.wVal);
+ mir_snprintf(_id, SIZEOF(_id), "%d", dbv.wVal);
id += _id;
}
break;
case DBVT_DWORD:
{
char _id[64];
- mir_snprintf(_id, 64, "%d", dbv.dVal);
+ mir_snprintf(_id, SIZEOF(_id), "%d", dbv.dVal);
id += _id;
}
break;
@@ -1464,21 +1464,21 @@ void ExportGpGKeysFunc(int type)
case DBVT_BYTE:
{
char _id[64];
- mir_snprintf(_id, 64, "%d", dbv.bVal);
+ mir_snprintf(_id, SIZEOF(_id), "%d", dbv.bVal);
id += _id;
}
break;
case DBVT_WORD:
{
char _id[64];
- mir_snprintf(_id, 64, "%d", dbv.wVal);
+ mir_snprintf(_id, SIZEOF(_id), "%d", dbv.wVal);
id += _id;
}
break;
case DBVT_DWORD:
{
char _id[64];
- mir_snprintf(_id, 64, "%d", dbv.dVal);
+ mir_snprintf(_id, SIZEOF(_id), "%d", dbv.dVal);
id += _id;
}
break;
@@ -1617,7 +1617,7 @@ INT_PTR ImportGpGKeys(WPARAM w, LPARAM l)
case DBVT_BYTE:
{
char _id[64];
- mir_snprintf(_id, 64, "%d", dbv.bVal);
+ mir_snprintf(_id, SIZEOF(_id), "%d", dbv.bVal);
id += _id;
if(id == login)
acc = accs[i]->szModuleName;
@@ -1626,7 +1626,7 @@ INT_PTR ImportGpGKeys(WPARAM w, LPARAM l)
case DBVT_WORD:
{
char _id[64];
- mir_snprintf(_id, 64, "%d", dbv.wVal);
+ mir_snprintf(_id, SIZEOF(_id), "%d", dbv.wVal);
id += _id;
if(id == login)
acc = accs[i]->szModuleName;
@@ -1635,7 +1635,7 @@ INT_PTR ImportGpGKeys(WPARAM w, LPARAM l)
case DBVT_DWORD:
{
char _id[64];
- mir_snprintf(_id, 64, "%d", dbv.dVal);
+ mir_snprintf(_id, SIZEOF(_id), "%d", dbv.dVal);
id += _id;
if(id == login)
acc = accs[i]->szModuleName;
@@ -1686,7 +1686,7 @@ INT_PTR ImportGpGKeys(WPARAM w, LPARAM l)
case DBVT_BYTE:
{
char _id[64];
- mir_snprintf(_id, 64, "%d", dbv.bVal);
+ mir_snprintf(_id, SIZEOF(_id), "%d", dbv.bVal);
id += _id;
if(id == contact_id)
found = true;
@@ -1695,7 +1695,7 @@ INT_PTR ImportGpGKeys(WPARAM w, LPARAM l)
case DBVT_WORD:
{
char _id[64];
- mir_snprintf(_id, 64, "%d", dbv.wVal);
+ mir_snprintf(_id, SIZEOF(_id), "%d", dbv.wVal);
id += _id;
if(id == contact_id)
found = true;
@@ -1704,7 +1704,7 @@ INT_PTR ImportGpGKeys(WPARAM w, LPARAM l)
case DBVT_DWORD:
{
char _id[64];
- mir_snprintf(_id, 64, "%d", dbv.dVal);
+ mir_snprintf(_id, SIZEOF(_id), "%d", dbv.dVal);
id += _id;
if(id == contact_id)
found = true;