]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tinfo/obsolete.c
ncurses 6.1 - patch 20200118
[ncurses.git] / ncurses / tinfo / obsolete.c
index 63476dc7987910db960fe37a7b6ea40c29fb5087..37f9de34b14720454fad3d71f6f2b7ef32eb20db 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 2013,2014 Free Software Foundation, Inc.                   *
+ * Copyright (c) 2013-2016,2020 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            *
 
 #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.5 2020/01/18 17:02:38 tom Exp $")
 
 /*
- * Obsolete entrypoint retained for binary compatbility.
+ * Obsolete entrypoint retained for binary compatibility.
  */
 NCURSES_EXPORT(void)
 NCURSES_SP_NAME(_nc_set_buffer) (NCURSES_SP_DCLx FILE *ofp, int buffered)
@@ -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;