]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/gdc.c
ncurses 6.0 - patch 20160910
[ncurses.git] / test / gdc.c
index 81de6c8d018e97473fe1049b4efce8e4c7275b13..0c48ffbedfa78292b7979dda6ff90c75ac059cd4 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998-2014,2015 Free Software Foundation, Inc.              *
+ * Copyright (c) 1998-2015,2016 Free Software Foundation, Inc.              *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -33,7 +33,7 @@
  * modified 10-18-89 for curses (jrl)
  * 10-18-89 added signal handling
  *
- * $Id: gdc.c,v 1.44 2015/07/04 21:28:28 tom Exp $
+ * $Id: gdc.c,v 1.45 2016/09/10 21:47:55 tom Exp $
  */
 
 #include <test.priv.h>
@@ -379,7 +379,7 @@ main(int argc, char *argv[])
        }
 
        /* this depends on the detailed format of ctime(3) */
-       (void) strncpy(buf, ctime(&now), (size_t) 30);
+       _nc_STRNCPY(buf, ctime(&now), (size_t) 30);
        {
            char *d2 = buf + 10;
            char *s2 = buf + 19;