tools: fix string parsing for LED colors

This commit is contained in:
Peter Hutterer
2017-03-31 13:10:58 +10:00
parent fd348d456d
commit f60f8a12ab

View File

@@ -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);