X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fpicsmap.c;h=2a95a75122c5d9790607fa044ef0695b0dfaec02;hp=303bc404a9de56baa0c03b32eeabad2874800476;hb=0237f10a296593d54fd8b2aa144921983085e002;hpb=cccf831ed7c83410c7f6cec2a43e71e9c4278b4c diff --git a/test/picsmap.c b/test/picsmap.c index 303bc404..2a95a751 100644 --- a/test/picsmap.c +++ b/test/picsmap.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: picsmap.c,v 1.121 2018/05/12 16:28:46 tom Exp $ + * $Id: picsmap.c,v 1.122 2018/05/20 19:43:40 tom Exp $ * * Author: Thomas E. Dickey * @@ -1583,6 +1583,8 @@ report_colors(PICS_HEAD * pics) if (j < 10) ++digits; } + if (digits > 8) + digits = 8; logmsg("These colors were used:"); high = (pics->colors + wide - 1) / wide; for (j = 0; j < high && j < pics->colors; ++j) {