X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fsavescreen.c;h=4be1bef5eaab462f941b3ec9e3e3e7ffbcd2ecec;hp=6cd4c60811f5fc3630cbbe2f88bd3f1ee66da3b8;hb=58369d647d003dd9d9e1ecfc5ab07982db28f3da;hpb=7fa7badf32c514211478cf9f79c70f20d435c2f2 diff --git a/test/savescreen.c b/test/savescreen.c index 6cd4c608..4be1bef5 100644 --- a/test/savescreen.c +++ b/test/savescreen.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: savescreen.c,v 1.35 2017/09/29 23:42:22 tom Exp $ + * $Id: savescreen.c,v 1.36 2017/10/20 21:20:34 tom Exp $ * * Demonstrate save/restore functions from the curses library. * Thomas Dickey - 2007/7/14 @@ -65,7 +65,7 @@ static bool keep_dumps = FALSE; static wchar_t BaseChar(cchar_t data) { - wchar_t my_wchar[sizeof(cchar_t)]; + wchar_t my_wchar[CCHARW_MAX]; attr_t my_attr; short my_pair; getcchar(&data, my_wchar, &my_attr, &my_pair, NULL);