diff --git a/xrdp/lang.c b/xrdp/lang.c index 0623b91e..6bcf7ebe 100644 --- a/xrdp/lang.c +++ b/xrdp/lang.c @@ -181,7 +181,7 @@ km_read_section(int fd, const char* section_name, struct xrdp_key_info* keymap) { code = g_atoi(name); } - if ((code >= 0) && (code < 128)) + if ((code >= 0) && (code < 256)) { pos1 = g_pos(value, ":"); if (pos1 >= 0) diff --git a/xrdp/xrdp_types.h b/xrdp/xrdp_types.h index 8ecc945c..74041608 100644 --- a/xrdp/xrdp_types.h +++ b/xrdp/xrdp_types.h @@ -201,11 +201,11 @@ struct xrdp_key_info struct xrdp_keymap { - struct xrdp_key_info keys_noshift[128]; - struct xrdp_key_info keys_shift[128]; - struct xrdp_key_info keys_altgr[128]; - struct xrdp_key_info keys_capslock[128]; - struct xrdp_key_info keys_shiftcapslock[128]; + struct xrdp_key_info keys_noshift[256]; + struct xrdp_key_info keys_shift[256]; + struct xrdp_key_info keys_altgr[256]; + struct xrdp_key_info keys_capslock[256]; + struct xrdp_key_info keys_shiftcapslock[256]; }; /* the window manager */