summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-28 22:02:03 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-28 22:02:03 +0000
commit490a0e9885933990f72b0e0485666a1f8522f018 (patch)
treee305a9cc03b9357176c15083062acb5852c21cdf /sv.c
parent0cda2667486fc2b14e2c3c31787368885ae92aa2 (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index c2d85721a0..96a1e88f43 100644
--- a/sv.c
+++ b/sv.c
@@ -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);
}
}