summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2020-11-18 10:27:50 +1100
committerTony Cook <tony@develop-help.com>2020-11-24 13:35:21 +1100
commit61f058724e10981590e6ccf006ce7ed70092fe2b (patch)
treea6e41d9b28a94378982c48236693b0e2e65fef2a /doio.c
parentd43c116b2ae74ec1f3ed78829d4f3ca76f091390 (diff)
downloadperl-61f058724e10981590e6ccf006ce7ed70092fe2b.tar.gz
fix UTF-8 handling for semop()
As with semctl(), the UTF-8 flag on the passed in opstring was ignored, which meant that the upgraded version of the same string would cause an error. Just use SvPVbyte().
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 bc59c178df..00f71686dc 100644
--- a/doio.c
+++ b/doio.c
@@ -3162,7 +3162,7 @@ Perl_do_semop(pTHX_ SV **mark, SV **sp)
STRLEN opsize;
const I32 id = SvIVx(*++mark);
SV * const opstr = *++mark;
- const char * const opbuf = SvPV_const(opstr, opsize);
+ const char * const opbuf = SvPVbyte(opstr, opsize);
PERL_ARGS_ASSERT_DO_SEMOP;
PERL_UNUSED_ARG(sp);