summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorSpider Boardman <spider@orb.nashua.nh.us>2000-09-14 15:06:36 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2000-09-14 23:17:39 +0000
commitd2f449dd43c68ee43aecff7e17640d02830ae584 (patch)
tree91751714dee9ae7dfe38c3e963037d31b6020711 /sv.c
parentb113ac0e1f6062bab37eac93aedaebf7296e8029 (diff)
downloadperl-d2f449dd43c68ee43aecff7e17640d02830ae584.tar.gz
Re: perl@7078
Message-Id: <200009142306.TAA20082@leggy.zk3.dec.com> p4raw-id: //depot/perl@7090
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 a89c49a68b..a694fedf1b 100644
--- a/sv.c
+++ b/sv.c
@@ -2412,9 +2412,9 @@ Perl_sv_utf8_upgrade(pTHX_ register SV *sv)
if (hibit) {
STRLEN len = SvCUR(sv) + 1; /* Plus the \0 */
SvPVX(sv) = (char*)bytes_to_utf8((U8*)s, &len);
- SvCUR(sv) = len - 1;
+ SvCUR(sv) = len; /* No longer know the real size. */
SvUTF8_on(sv);
- Safefree(s); /* No longer using what was there before */
+ Safefree(s); /* No longer using what was there before. */
}
}