X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fechochar.c;h=d4de7eef47c5a1f64acb04be3ba3d8c9d48fd568;hp=a8203821075b8c0b8d53c29b9296355f04acbd1e;hb=396a05943b7da5039dd15d79c4385c7d2a75d6d4;hpb=772f879d17117c5b766022f28099e341ebea825b diff --git a/test/echochar.c b/test/echochar.c index a8203821..d4de7eef 100644 --- a/test/echochar.c +++ b/test/echochar.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2006,2007 Free Software Foundation, Inc. * + * Copyright (c) 2006-2007,2008 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,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: echochar.c,v 1.5 2007/07/21 17:41:55 tom Exp $ + * $Id: echochar.c,v 1.6 2008/04/12 22:06:04 tom Exp $ * * Demonstrate the echochar function (compare to dots.c). * Thomas Dickey - 2006/11/4 @@ -107,7 +107,7 @@ main( if (use_colors) { start_color(); if (COLOR_PAIRS > 0) { - my_pairs = calloc((unsigned) COLOR_PAIRS, sizeof(*my_pairs)); + my_pairs = typeCalloc(char, COLOR_PAIRS); } use_colors = (my_pairs != 0); }