X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fnewdemo.c;h=825d6e4624569d9dc42a1aea3abc0f439b7ab942;hp=566fc47c6a6c756a1feec8c2a6b9cf1119bdc0f3;hb=938680fa3bc29d2a086031a2f648dfd6cadcb51e;hpb=925cd3b851aa2c58529dfaba8ed2c727e718a1e0 diff --git a/test/newdemo.c b/test/newdemo.c index 566fc47c..825d6e46 100644 --- a/test/newdemo.c +++ b/test/newdemo.c @@ -2,7 +2,7 @@ * newdemo.c - A demo program using PDCurses. The program illustrate * the use of colours for text output. * - * $Id: newdemo.c,v 1.37 2012/11/17 23:27:50 tom Exp $ + * $Id: newdemo.c,v 1.39 2012/12/29 23:39:08 tom Exp $ */ #include @@ -222,7 +222,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) { WINDOW *win; int w, x, y, i, j, k; - char buffer[200]; + char buffer[SIZEOF(messages) * 80]; const char *message; int width, height; chtype save[80];