summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-12-16 18:12:26 +0000
committerNicholas Clark <nick@ccl4.org>2005-12-16 18:12:26 +0000
commit3043b442861dc32a5941608838b57d2e089a7e25 (patch)
treec60c91dcbff7a4ff6fefc033116f481718ee6023 /sv.c
parent2d6f15eafc21a67bcb6eacef80e82c8f616ab7c1 (diff)
downloadperl-3043b442861dc32a5941608838b57d2e089a7e25.tar.gz
Perl_sv_dup should be allocating bodies based on *size*, not the
length to copy. p4raw-id: //depot/perl@26378
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 5029fb2afe..b2a2fefb6a 100644
--- a/sv.c
+++ b/sv.c
@@ -9314,9 +9314,9 @@ Perl_sv_dup(pTHX_ SV *sstr, CLONE_PARAMS* param)
case SVt_PVNV:
case SVt_PVIV:
case SVt_PV:
- assert(sv_type_details->copy);
+ assert(sv_type_details->size);
if (sv_type_details->arena) {
- new_body_inline(new_body, sv_type_details->copy, sv_type);
+ new_body_inline(new_body, sv_type_details->size, sv_type);
new_body
= (void*)((char*)new_body - sv_type_details->offset);
} else {