diff options
author | Tony Cook <tony@develop-help.com> | 2020-11-18 14:20:47 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2020-11-24 13:35:21 +1100 |
commit | aa058ea4938983be8517ca4ac1dbcdf62cd96da2 (patch) | |
tree | f264df9d541faa937d63ee32a5c403c8fc7537c4 /doio.c | |
parent | 58b73e564c400e9f1e26a50fe882f6aaea2aabf2 (diff) | |
download | perl-aa058ea4938983be8517ca4ac1dbcdf62cd96da2.tar.gz |
msgsnd: handle an upgraded MSG parameter correctly
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |