mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
tools: fix OOB for LED color parsing
Let's not forget about the null-terminator, he feels lonely otherwise. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -1560,7 +1560,7 @@ ratbag_cmd_led_set_color(const struct ratbag_cmd *cmd,
|
||||
struct ratbag_led *led;
|
||||
struct ratbag_color color;
|
||||
int rc;
|
||||
char red[2], green[2], blue[2];
|
||||
char red[3], green[3], blue[3];
|
||||
char *p;
|
||||
|
||||
if (argc < 1)
|
||||
|
||||
Reference in New Issue
Block a user