summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-07 21:16:13 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-07 21:16:13 +0000
commit3f20caebd7ec420ed2589182dd2b63e1c233cc9d (patch)
treebf97f300ff97cf11727fc86c6de43751b823c6da /mg.c
parent515a5240775edd58e87afdd749fd9711b5ee53c8 (diff)
downloadperl-3f20caebd7ec420ed2589182dd2b63e1c233cc9d.tar.gz
More SvPV consting
p4raw-id: //depot/perl@24743
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mg.c b/mg.c
index e1618474e2..819b01291d 100644
--- a/mg.c
+++ b/mg.c
@@ -263,11 +263,11 @@ Perl_mg_length(pTHX_ SV *sv)
}
if (DO_UTF8(sv)) {
- U8 *s = (U8*)SvPV(sv, len);
+ const U8 *s = (U8*)SvPV_const(sv, len);
len = Perl_utf8_length(aTHX_ s, s + len);
}
else
- (void)SvPV(sv, len);
+ (void)SvPV_const(sv, len);
return len;
}