]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tinfo/obsolete.c
ncurses 6.1 - patch 20190406
[ncurses.git] / ncurses / tinfo / obsolete.c
index 63476dc7987910db960fe37a7b6ea40c29fb5087..2724fe53486a502492e710faa5536ab9d5046629 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 2013,2014 Free Software Foundation, Inc.                   *
+ * Copyright (c) 2013-2014,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            *
@@ -36,7 +36,7 @@
 
 #include <curses.priv.h>
 
-MODULE_ID("$Id: obsolete.c,v 1.3 2014/10/11 02:39:35 tom Exp $")
+MODULE_ID("$Id: obsolete.c,v 1.4 2016/09/10 18:39:51 tom Exp $")
 
 /*
  * Obsolete entrypoint retained for binary compatbility.
@@ -68,7 +68,7 @@ _nc_strdup(const char *s)
        size_t need = strlen(s);
        result = malloc(need + 1);
        if (result != 0) {
-           strcpy(result, s);
+           _nc_STRCPY(result, s, need);
        }
     }
     return result;