summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2020-11-18 14:20:47 +1100
committerTony Cook <tony@develop-help.com>2020-11-24 13:35:21 +1100
commitaa058ea4938983be8517ca4ac1dbcdf62cd96da2 (patch)
treef264df9d541faa937d63ee32a5c403c8fc7537c4 /doio.c
parent58b73e564c400e9f1e26a50fe882f6aaea2aabf2 (diff)
downloadperl-aa058ea4938983be8517ca4ac1dbcdf62cd96da2.tar.gz
msgsnd: handle an upgraded MSG parameter correctly
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index 00f71686dc..aa6c35bd15 100644
--- a/doio.c
+++ b/doio.c
@@ -3086,7 +3086,7 @@ Perl_do_msgsnd(pTHX_ SV **mark, SV **sp)
const I32 id = SvIVx(*++mark);
SV * const mstr = *++mark;
const I32 flags = SvIVx(*++mark);
- const char * const mbuf = SvPV_const(mstr, len);
+ const char * const mbuf = SvPVbyte(mstr, len);
const I32 msize = len - sizeof(long);
PERL_ARGS_ASSERT_DO_MSGSND;