mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
tools: fix string parsing for LED colors
This commit is contained in:
@@ -1563,7 +1563,7 @@ ratbag_cmd_led_set_color(const struct ratbag_cmd *cmd,
|
||||
|
||||
led = options->led;
|
||||
|
||||
sscanf(argv[0], "%2s%2s%2s", &red, &green, &blue);
|
||||
sscanf(argv[0], "%2s%2s%2s", red, green, blue);
|
||||
|
||||
color.red = strtoul(red, &p, 16);
|
||||
color.green = strtoul(green, &p, 16);
|
||||
|
||||
Reference in New Issue
Block a user