X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fgdc.c;fp=test%2Fgdc.c;h=a74cd0df76b8d0224fb4714a7e95c012014b2e6e;hp=9d88f5eb02ae574c7271f88995f4f3514d9ac0ed;hb=e2dee48666d83c609f7ecced6203ecfdc94e36aa;hpb=2e507e7570bd701b27ad8c65adfb612dbc087125 diff --git a/test/gdc.c b/test/gdc.c index 9d88f5eb..a74cd0df 100644 --- a/test/gdc.c +++ b/test/gdc.c @@ -33,7 +33,7 @@ * modified 10-18-89 for curses (jrl) * 10-18-89 added signal handling * - * $Id: gdc.c,v 1.37 2013/04/27 19:50:17 tom Exp $ + * $Id: gdc.c,v 1.38 2013/09/28 21:58:32 tom Exp $ */ #include @@ -293,7 +293,7 @@ main(int argc, char *argv[]) } /* this depends on the detailed format of ctime(3) */ - (void) strncpy(buf, ctime(&now), 30); + (void) strncpy(buf, ctime(&now), (size_t) 30); (void) strcpy(buf + 10, buf + 19); MvAddStr(16, 30, buf);