summaryrefslogtreecommitdiffstats
path: root/xrdp
diff options
context:
space:
mode:
authorItamar Reis Peixoto <itamar@ispbrasil.com.br>2016-11-02 01:14:19 -0200
committerGitHub <noreply@github.com>2016-11-02 01:14:19 -0200
commitf94920171ea9266e080e8a2ddfeb4afffab73cf7 (patch)
tree3ccf6d7033ae3560b9129bcc88d94dd86b79abf0 /xrdp
parentc6df12b558160b45a6005b051aba0ddd8e82ae0a (diff)
parentf62b55c5473f3fc2a6af99f0731b6a1d470c8b24 (diff)
downloadxrdp-proprietary-f94920171ea9266e080e8a2ddfeb4afffab73cf7.tar.gz
xrdp-proprietary-f94920171ea9266e080e8a2ddfeb4afffab73cf7.zip
Merge pull request #437 from metalefty/switch-to-8-hex-digit-keymap-file
Switch to 8 hex digit keymapfile
Diffstat (limited to 'xrdp')
-rw-r--r--xrdp/lang.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xrdp/lang.c b/xrdp/lang.c
index fa284112..ae577596 100644
--- a/xrdp/lang.c
+++ b/xrdp/lang.c
@@ -231,12 +231,12 @@ get_keymaps(int keylayout, struct xrdp_keymap *keymap)
filename = (char *)g_malloc(256, 0);
/* check if there is a keymap file */
- g_snprintf(filename, 255, "%s/km-%4.4x.ini", XRDP_CFG_PATH, keylayout);
+ g_snprintf(filename, 255, "%s/km-%08x.ini", XRDP_CFG_PATH, keylayout);
/* if the file does not exist, try again with 'en-us' as fallback */
if (!g_file_exist(filename))
{
- g_snprintf(filename, 255, "%s/km-0409.ini", XRDP_CFG_PATH);
+ g_snprintf(filename, 255, "%s/km-00000409.ini", XRDP_CFG_PATH);
}
if (g_file_exist(filename))
@@ -263,7 +263,7 @@ get_keymaps(int keylayout, struct xrdp_keymap *keymap)
if (g_memcmp(lkeymap, keymap, sizeof(struct xrdp_keymap)) != 0)
{
log_message(LOG_LEVEL_WARNING,
- "local keymap file for 0x%4.4x found and doesn't match "
+ "local keymap file for 0x%08x found and doesn't match "
"built in keymap, using local keymap file", keylayout);
}