X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fxmas.c;h=9b66cca7b2b462275cd667e25917fe9a1d6c35a1;hp=144ccea22aec683b21aed5a07d942bcfb621c6ba;hb=396a05943b7da5039dd15d79c4385c7d2a75d6d4;hpb=6a5e1ae3015763934a358df2680a77458ca3e342 diff --git a/test/xmas.c b/test/xmas.c index 144ccea2..9b66cca7 100644 --- a/test/xmas.c +++ b/test/xmas.c @@ -92,7 +92,7 @@ /******************************************************************************/ /* - * $Id: xmas.c,v 1.22 2006/05/20 15:35:47 tom Exp $ + * $Id: xmas.c,v 1.23 2008/04/12 22:05:04 tom Exp $ */ #include @@ -156,7 +156,7 @@ set_color(WINDOW *win, chtype color) if (has_colors()) { int n = (color + 1); if (my_pairs == 0) - my_pairs = (bool *) calloc((unsigned) (COLORS + 1), sizeof(bool)); + my_pairs = typeCalloc(bool, COLORS + 1); if (!my_pairs[n]) { init_pair(n, color, my_bg); my_pairs[n] = TRUE;