summaryrefslogtreecommitdiff
path: root/plugins/ChangeKeyboardLayout/src/text_operations.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ChangeKeyboardLayout/src/text_operations.cpp')
-rw-r--r--plugins/ChangeKeyboardLayout/src/text_operations.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ChangeKeyboardLayout/src/text_operations.cpp b/plugins/ChangeKeyboardLayout/src/text_operations.cpp
index 440840781d..567df72e3f 100644
--- a/plugins/ChangeKeyboardLayout/src/text_operations.cpp
+++ b/plugins/ChangeKeyboardLayout/src/text_operations.cpp
@@ -69,8 +69,8 @@ BOOL CopyTextToClipboard(LPTSTR ptszText)
LPSTR GetNameOfLayout(HKL hklLayout)
{
- LPSTR ptszLayName = (LPSTR)mir_alloc(KL_NAMELENGTH+1);
- sprintf(ptszLayName, "%08x", hklLayout);
+ LPSTR ptszLayName = (LPSTR)mir_alloc(KL_NAMELENGTH + 1);
+ mir_snprintf(ptszLayName, KL_NAMELENGTH + 1, "%08x", hklLayout);
return ptszLayName;
}