summaryrefslogtreecommitdiff
path: root/pp_pack.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-09 10:36:53 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-09 10:36:53 +0000
commitb83604b4e5062f93776f6a381f822df058667e23 (patch)
tree5f2327acdc21b277967dfa470e28258e2d98feaa /pp_pack.c
parent9b72c5e4bad2968d5855406da5849c115d1a7562 (diff)
downloadperl-b83604b4e5062f93776f6a381f822df058667e23.tar.gz
More SvPV consting
p4raw-id: //depot/perl@24778
Diffstat (limited to 'pp_pack.c')
-rw-r--r--pp_pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp_pack.c b/pp_pack.c
index 11a1ed64b0..16e724e452 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -2832,14 +2832,14 @@ S_pack_rec(pTHX_ SV *cat, tempsym_t* symptr, SV **beglist, SV **endlist )
}
case 'B':
case 'b': {
- char *str, *end;
+ const char *str, *end;
I32 l, field_len;
U8 bits;
bool utf8_source;
U32 utf8_flags;
fromstr = NEXTFROM;
- str = SvPV(fromstr, fromlen);
+ str = SvPV_const(fromstr, fromlen);
end = str + fromlen;
if (DO_UTF8(fromstr)) {
utf8_source = TRUE;