summaryrefslogtreecommitdiff
path: root/plugins/MenuItemEx/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-25 15:03:12 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-25 15:03:12 +0300
commitd308658d4816066a495a742890b63aa881f98e9b (patch)
tree8347b275a2accd226c4257d68f361967483ef223 /plugins/MenuItemEx/src
parentcf0855b36f260ea19c96e43e99f94988f81dcf12 (diff)
fix for buffer length
Diffstat (limited to 'plugins/MenuItemEx/src')
-rw-r--r--plugins/MenuItemEx/src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp
index 5c3f3873df..0f6b58fe2e 100644
--- a/plugins/MenuItemEx/src/main.cpp
+++ b/plugins/MenuItemEx/src/main.cpp
@@ -272,7 +272,7 @@ void GetID(MCONTACT hContact, LPSTR szProto, LPSTR szID, size_t dwIDSize)
else if (dbv_uniqueid.type == DBVT_WORD)
mir_snprintf(szID, dwIDSize, "%u", dbv_uniqueid.wVal);
else if (dbv_uniqueid.type == DBVT_BLOB) {
- CMStringA tmp(' ', dbv_uniqueid.cpbVal*2);
+ CMStringA tmp(' ', dbv_uniqueid.cpbVal*2+1);
bin2hex(dbv_uniqueid.pbVal, dbv_uniqueid.cpbVal, tmp.GetBuffer());
strncpy_s(szID, dwIDSize, tmp, _TRUNCATE);
}