diff --git a/utils/nsoption.c b/utils/nsoption.c index 09529a0d0..4e7bbbdd5 100644 --- a/utils/nsoption.c +++ b/utils/nsoption.c @@ -383,9 +383,7 @@ nsoption_output_value_html(struct nsoption_s *option, break; case OPTION_COLOUR: - rgbcolour = (((0x000000FF & option->value.c) << 16) | - ((0x0000FF00 & option->value.c) << 0) | - ((0x00FF0000 & option->value.c) >> 16)); + rgbcolour = colour_rb_swap(option->value.c); slen = snprintf(string + pos, size - pos, "