summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-01-15 13:06:26 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-01-15 13:06:26 +0000
commite95af3626d8956c991c017085c9b5331e4f11c94 (patch)
treedc62cb9aa777f3bea314dd64ceb86bffbc5825fd /mg.c
parent117dada22e1a48990acd498dee229f361feda1fa (diff)
downloadperl-e95af3626d8956c991c017085c9b5331e4f11c94.tar.gz
Missing from #8439.
p4raw-id: //depot/perl@8443
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 4f183b02c5..9f05d3c2c4 100644
--- a/mg.c
+++ b/mg.c
@@ -1433,7 +1433,7 @@ Perl_magic_setsubstr(pTHX_ SV *sv, MAGIC *mg)
}
else if (SvUTF8(lsv)) {
sv_pos_u2b(lsv, &lvoff, &lvlen);
- tmps = bytes_to_utf8(tmps, &len);
+ tmps = (char*)bytes_to_utf8((U8*)tmps, &len);
sv_insert(lsv, lvoff, lvlen, tmps, len);
Safefree(tmps);
}