diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-28 22:02:03 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-28 22:02:03 +0000 |
commit | 490a0e9885933990f72b0e0485666a1f8522f018 (patch) | |
tree | e305a9cc03b9357176c15083062acb5852c21cdf /sv.c | |
parent | 0cda2667486fc2b14e2c3c31787368885ae92aa2 (diff) | |
download | perl-490a0e9885933990f72b0e0485666a1f8522f018.tar.gz |
Convert strcpy to memcpy where we already know the length.
p4raw-id: //depot/perl@25007
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3308,7 +3308,7 @@ Perl_sv_2pv_flags(pTHX_ register SV *sv, STRLEN *lp, I32 flags) s = SvGROW_mutable(sv, len + 1); SvCUR_set(sv, len); SvPOKp_on(sv); - return strcpy(s, t); + return memcpy(s, t, len + 1); } } |