From a757184e5db3112d3de0b69eec7d39b937e396bc Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 25 Jul 2013 15:32:06 +0000 Subject: replace sprintf to mir_snprintf (part 5) git-svn-id: http://svn.miranda-ng.org/main/trunk@5481 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ChangeKeyboardLayout/src/text_operations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/ChangeKeyboardLayout/src') 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; } -- cgit v1.2.3