X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fextended_color.c;h=00b48140fa39f626cc1d58ed6b2c1098e225f036;hp=63426e81ea0ec78d2427ccaba397d7caf285bfde;hb=eccca377f55c70b12e3e92621d94d1e1c1fcfb7d;hpb=acb4184f8f69fddd052a3daa8c8675f4bf8ce369 diff --git a/test/extended_color.c b/test/extended_color.c index 63426e81..00b48140 100644 --- a/test/extended_color.c +++ b/test/extended_color.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2017,2018 Free Software Foundation, Inc. * + * Copyright (c) 2017-2018,2019 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -26,12 +26,12 @@ * authorization. * ****************************************************************************/ /* - * $Id: extended_color.c,v 1.11 2018/12/29 21:50:33 tom Exp $ + * $Id: extended_color.c,v 1.13 2019/01/21 14:59:34 tom Exp $ */ #include -#if HAVE_INIT_EXTENDED_COLOR +#if USE_EXTENDED_COLOR #define SHOW(n) ((n) == ERR ? "ERR" : "OK") @@ -213,7 +213,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) extended_slk_color(2)); for (i = 1; i <= 8; ++i) { char temp[80]; - sprintf(temp, "(SLK-%d)", i); + _nc_SPRINTF(temp, _nc_SLIMIT(sizeof(temp)) "(SLK-%d)", i); slk_set(i, temp, 0); } slk_touch();