]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/test_addchstr.c
ncurses 5.7 - patch 20091010
[ncurses.git] / test / test_addchstr.c
index 9f8a34910fc0c32cedd12dde3d66cb9514651200..247a75604c903fa1c806cf5acf0e843b95afb1bc 100644 (file)
@@ -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 */