X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftest_addchstr.c;h=247a75604c903fa1c806cf5acf0e843b95afb1bc;hp=9f8a34910fc0c32cedd12dde3d66cb9514651200;hb=59108c98bda25ae50b3a319e2bcb7f4b9a174024;hpb=3511767aa77f332927de0c4a610f9fb37ea18101 diff --git a/test/test_addchstr.c b/test/test_addchstr.c index 9f8a3491..247a7560 100644 --- a/test/test_addchstr.c +++ b/test/test_addchstr.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: test_addchstr.c,v 1.4 2009/09/13 00:00:58 tom Exp $ + * $Id: test_addchstr.c,v 1.5 2009/10/10 16:01:41 tom Exp $ * * Demonstrate the waddchstr() and waddch functions. * Thomas Dickey - 2009/9/12 @@ -346,7 +346,7 @@ test_adds(int level) beep(); break; } - buffer[length++] = ch; + buffer[length++] = (char) ch; buffer[length] = '\0'; /* put the string in, one character at a time */