summaryrefslogtreecommitdiff
path: root/pp_pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'pp_pack.c')
-rw-r--r--pp_pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_pack.c b/pp_pack.c
index 00a7da2305..ba0a9a3d86 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -2452,7 +2452,7 @@ marked_upgrade(pTHX_ SV *sv, tempsym_t *sym_ptr) {
}
if (SvLEN(sv) != 0)
Safefree(from_start);
- SvPVX(sv) = to_start;
+ SvPV_set(sv, to_start);
SvCUR(sv) = to_ptr - to_start;
SvLEN(sv) = len;
SvUTF8_on(sv);