diff options
-rwxr-xr-x | plugins/New_GPG/src/utilities.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/New_GPG/src/utilities.cpp b/plugins/New_GPG/src/utilities.cpp index 29762ef12d..5c62df7c0b 100755 --- a/plugins/New_GPG/src/utilities.cpp +++ b/plugins/New_GPG/src/utilities.cpp @@ -263,7 +263,7 @@ int OnPreBuildContactMenu(WPARAM w, LPARAM l) keyid = UniGetContactSettingUtf(NULL, szGPGModuleName, "KeyID", ""); } TCHAR buf[128] = {0}; - mir_sntprintf(buf, 127 * sizeof(TCHAR), _T("%s: %s"), TranslateT("Send publick key"), toUTF16(keyid).c_str()); + mir_sntprintf(buf, SIZEOF(buf), _T("%s: %s"), TranslateT("Send publick key"), toUTF16(keyid).c_str()); mir_free(keyid); mi2.ptszName = buf; mi2.flags = CMIM_NAME | CMIF_TCHAR; |