X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftest_addstr.c;h=d4c0425ec66a9d1f405afee1a3add01761d4dfc5;hp=a0029706d66c2672ec470eb5654603f5a8f74ab2;hb=59108c98bda25ae50b3a319e2bcb7f4b9a174024;hpb=2a250f30ac496bb8a383036dcbd4ec0218c98ac5 diff --git a/test/test_addstr.c b/test/test_addstr.c index a0029706..d4c0425e 100644 --- a/test/test_addstr.c +++ b/test/test_addstr.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: test_addstr.c,v 1.2 2009/09/12 22:52:29 tom Exp $ + * $Id: test_addstr.c,v 1.3 2009/10/10 16:01:41 tom Exp $ * * Demonstrate the waddstr() and waddch functions. * Thomas Dickey - 2009/9/12 @@ -312,7 +312,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 */