diff options
author | Steve Peters <steve@fisharerojo.org> | 2006-07-10 13:55:39 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2006-07-10 13:55:39 +0000 |
commit | 28f0d0ec424c9050a6c7d38541d2e6b5e66fb97c (patch) | |
tree | 4e8111082e458dc0524533bc9d0d9a24a01f0391 /util.c | |
parent | 0bec6c03caec93aa207fcfeff506a7c46c7019e9 (diff) | |
download | perl-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.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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 |