X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fview.c;h=4782d8509748a42e6728b70826b5bc7fd62d5200;hp=8dcb0380ee34c848f3d88d60ddfa6eb7c13d8d30;hb=aefc1659d732acf7e62c0c78a443d6d8352a3c6e;hpb=fd52bfa49753d67673ba8d7aef9239f5b16c1ad0 diff --git a/test/view.c b/test/view.c index 8dcb0380..4782d850 100644 --- a/test/view.c +++ b/test/view.c @@ -50,7 +50,7 @@ * scroll operation worked, and the refresh() code only had to do a * partial repaint. * - * $Id: view.c,v 1.93 2013/04/27 19:46:53 tom Exp $ + * $Id: view.c,v 1.94 2013/09/28 21:58:42 tom Exp $ */ #include @@ -577,7 +577,7 @@ show_all(const char *tag) printw("%.*s", COLS, temp); clrtoeol(); this_time = time((time_t *) 0); - strncpy(temp, ctime(&this_time), 30); + strncpy(temp, ctime(&this_time), (size_t) 30); if ((i = (int) strlen(temp)) != 0) { temp[--i] = 0; if (move(0, COLS - i - 2) != ERR)