We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1f2ce5 commit 38b1d65Copy full SHA for 38b1d65
xrdp/lang.c
@@ -700,9 +700,12 @@ xrdp_init_xkb_layout(struct xrdp_client_info *client_info)
700
701
if (section_found == -1)
702
{
703
- g_memset(section_rdp_layouts, 0, sizeof(char) * 256);
704
- g_memset(section_layouts_map, 0, sizeof(char) * 256);
705
// read default section
+ strlcpy(section_rdp_layouts, "default_rdp_layouts",
+ sizeof(section_rdp_layouts));
706
+ strlcpy(section_layouts_map, "default_layouts_map",
707
+ sizeof(section_layouts_map));
708
+
709
file_read_section(fd, "default", items, values);
710
for (index = 0; index < items->count; index++)
711
0 commit comments