Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
channels: icons - fix lowercase for '%c'
  • Loading branch information
perexg committed Oct 30, 2015
1 parent b28ecfe commit 4900abd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/channels.c
Expand Up @@ -711,6 +711,11 @@ channel_get_icon ( channel_t *ch )
if (aname == NULL)
aname = strdup(chname);

if (config.chicon_lowercase)
for (s = aname; *s; s++)
if (*s >= 'A' && *s <= 'Z')
*(char *)s = *s - 'A' + 'a';

sname = url_encode(aname);
free((char *)aname);
}
Expand Down

0 comments on commit 4900abd

Please sign in to comment.