From 28f0d0ec424c9050a6c7d38541d2e6b5e66fb97c Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Mon, 10 Jul 2006 13:55:39 +0000 Subject: 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 --- util.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'util.c') 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 -- cgit v1.2.1