X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fcolor_name.h;h=d27804e87266dac9b5bafbe7f39c12a2bef076c0;hp=0dadd2a16c1c15cff41e45c970798fd2ebb84a09;hb=9b4c4abadc0a29999c5ddad5aa8d769fee28d687;hpb=7503e8d82292a2a0a4d8bb55bdf3f8a203159f68;ds=inline diff --git a/test/color_name.h b/test/color_name.h index 0dadd2a1..d27804e8 100644 --- a/test/color_name.h +++ b/test/color_name.h @@ -27,7 +27,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: color_name.h,v 1.7 2020/02/02 23:34:34 tom Exp $ + * $Id: color_name.h,v 1.8 2020/06/20 18:58:20 tom Exp $ */ #ifndef __COLORNAME_H @@ -90,7 +90,7 @@ color_name(int color) const char *result = 0; if (color >= (int) SIZEOF(the_color_names)) { - _nc_SPRINTF(temp, _nc_SLIMIT(sizeof(result)) "%d", color); + _nc_SPRINTF(temp, _nc_SLIMIT(sizeof(temp)) "%d", color); result = temp; } else if (color < 0) { result = "default";