summaryrefslogtreecommitdiff
path: root/util.c
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 /util.c
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 'util.c')
-rw-r--r--util.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/util.c b/util.c
index 6e291d310f..7a3be16a09 100644
--- a/util.c
+++ b/util.c
@@ -3118,13 +3118,7 @@ Perl_find_script(pTHX_ const char *scriptname, bool dosearch,
if (len == 2 && tmpbuf[0] == '.')
seen_dot = 1;
#endif
-#ifdef HAS_STRLCAT
- (void)strlcpy(tmpbuf + len, scriptname, sizeof(tmpbuf) - len);
-#else
- /* FIXME? Convert to memcpy by storing previous strlen(scriptname)
- */
- (void)strcpy(tmpbuf + len, scriptname);
-#endif /* #ifdef HAS_STRLCAT */
+ (void)my_strlcpy(tmpbuf + len, scriptname, sizeof(tmpbuf) - len);
#endif /* !VMS */
#ifdef SEARCH_EXTS