aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/conf.c b/src/conf.c
index 05eb28ff7..ff627e0b6 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -332,14 +332,15 @@ check_screen_list(char *value)
i=0;
j=0;
while( tmp && tmp[i] ) {
- tmp[i] = lowerstr(tmp[i]);
- if (screen_lookup_name(tmp[i]) == NULL)
+ char *name = g_ascii_strdown(tmp[i], -1);
+ if (screen_lookup_name(name) == NULL) {
fprintf(stderr,
_("Error: Unsupported screen \"%s\"\n"),
- tmp[i]);
- else {
+ name);
+ free(name);
+ } else {
screen = g_realloc(screen, (j+2)*sizeof(char *));
- screen[j++] = g_strdup(tmp[i]);
+ screen[j++] = name;
screen[j] = NULL;
}
i++;