mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
permngr: compare the whole string not just the 4 first chars.
This commit is contained in:
parent
c5d25fdfad
commit
e628a79588
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue