xrdp: do case insensitive compare for section names

This commit is contained in:
Jay Sorg
2016-11-19 07:44:28 +00:00
parent 25fd585d55
commit e8308d58b3
+3 -3
View File
@@ -560,9 +560,9 @@ xrdp_wm_login_fill_in_combo(struct xrdp_wm *self, struct xrdp_bitmap *b)
p = (char *)list_get_item(sections, i);
file_read_section(fd, p, section_names, section_values);
if ((g_strncmp(p, "globals", 255) == 0)
|| (g_strncmp(p, "channels", 255) == 0)
|| (g_strncmp(p, "Logging", 255) == 0))
if ((g_strncasecmp(p, "globals", 255) == 0)
|| (g_strncasecmp(p, "channels", 255) == 0)
|| (g_strncasecmp(p, "Logging", 255) == 0))
{
}
else