diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-12-16 18:12:26 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-12-16 18:12:26 +0000 |
commit | 3043b442861dc32a5941608838b57d2e089a7e25 (patch) | |
tree | c60c91dcbff7a4ff6fefc033116f481718ee6023 /sv.c | |
parent | 2d6f15eafc21a67bcb6eacef80e82c8f616ab7c1 (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |