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 /pp_ctl.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 'pp_ctl.c')
-rw-r--r-- | pp_ctl.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -3423,9 +3423,7 @@ PP(pp_entereval) U32 seq; HV *saved_hh = NULL; const char * const fakestr = "_<(eval )"; -#ifdef HAS_STRLCPY const int fakelen = 9 + 1; -#endif if (PL_op->op_private & OPpEVAL_HAS_HH) { saved_hh = (HV*) SvREFCNT_inc(POPs); @@ -3498,11 +3496,7 @@ PP(pp_entereval) if (PERLDB_INTER && was != (I32)PL_sub_generation /* Some subs defined here. */ && ret != PL_op->op_next) { /* Successive compilation. */ /* Copy in anything fake and short. */ -#ifdef HAS_STRLCPY - strlcpy(safestr, fakestr, fakelen); -#else - strcpy(safestr, fakestr); -#endif /* #ifdef HAS_STRLCPY */ + my_strlcpy(safestr, fakestr, fakelen); } return DOCATCH(ret); } |