permngr: compare the whole string not just the 4 first chars.

This commit is contained in:
Kenneth Johansson 2015-11-30 13:21:23 +01:00
parent c5d25fdfad
commit e628a79588

View file

@ -841,7 +841,7 @@ void led_init( struct server_ctx *s_ctx)
if (s) {
DBG(1,"Dimming init");
for(i=0 ; i < LED_ACTION_MAX ; i++) {
if (! strncasecmp(s, fn_actions[i], sizeof(fn_actions[i]))){
if (! strncasecmp(s, fn_actions[i], strlen(fn_actions[i]))){
dimming_level = i;
}
}