diff --git a/src/builtin_set_color.cpp b/src/builtin_set_color.cpp index 4f4a6f606..cb1bfcfdb 100644 --- a/src/builtin_set_color.cpp +++ b/src/builtin_set_color.cpp @@ -41,7 +41,7 @@ static void print_colors(io_streams_t &streams) { rgb_color_t color = rgb_color_t(color_name); outp.set_color(color, rgb_color_t::none()); } - outp.writestr(color_name.c_str()); + outp.writestr(color_name); outp.writech(L'\n'); } // conveniently, 'normal' is always the last color so we don't need to reset here