diff options
-rw-r--r-- | hw/fsp/fsp-leds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/fsp/fsp-leds.c b/hw/fsp/fsp-leds.c index eef932c5..82be37a6 100644 --- a/hw/fsp/fsp-leds.c +++ b/hw/fsp/fsp-leds.c @@ -683,7 +683,7 @@ static int queue_led_state_change(char *loc_code, u8 command, } /* Save the request */ - strncpy(cmd->loc_code, loc_code, strlen(loc_code)); + strncpy(cmd->loc_code, loc_code, LOC_CODE_SIZE); cmd->command = command; cmd->state = state; cmd->cmd_src = cmd_src; |