summaryrefslogtreecommitdiff
path: root/ext/File
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-07-10 13:55:39 +0000
committerSteve Peters <steve@fisharerojo.org>2006-07-10 13:55:39 +0000
commit28f0d0ec424c9050a6c7d38541d2e6b5e66fb97c (patch)
tree4e8111082e458dc0524533bc9d0d9a24a01f0391 /ext/File
parent0bec6c03caec93aa207fcfeff506a7c46c7019e9 (diff)
downloadperl-28f0d0ec424c9050a6c7d38541d2e6b5e66fb97c.tar.gz
Change existing uses of strlcpy()/strlcat() to use new my_strlcpy()/
my_strlcat() API. Convert ext/File/Glob/bsd_glob.c to use my_strlcat(). Add to the strlcy()/strlcat() todo entry. p4raw-id: //depot/perl@28528
Diffstat (limited to 'ext/File')
-rw-r--r--ext/File/Glob/bsd_glob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/File/Glob/bsd_glob.c b/ext/File/Glob/bsd_glob.c
index 78a8c647ec..c1dbd2c093 100644
--- a/ext/File/Glob/bsd_glob.c
+++ b/ext/File/Glob/bsd_glob.c
@@ -1131,9 +1131,9 @@ g_opendir(register Char *str, glob_t *pglob)
if (!*str) {
#ifdef MACOS_TRADITIONAL
- strcpy(buf, ":");
+ my_strlcpy(buf, ":", sizeof(buf));
#else
- strcpy(buf, ".");
+ my_strlcpy(buf, ".", sizeof(buf));
#endif
} else {
if (g_Ctoc(str, buf, sizeof(buf)))