diff options
author | Tony Cook <tony@develop-help.com> | 2020-11-18 10:27:50 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2020-11-24 13:35:21 +1100 |
commit | 61f058724e10981590e6ccf006ce7ed70092fe2b (patch) | |
tree | a6e41d9b28a94378982c48236693b0e2e65fef2a /doio.c | |
parent | d43c116b2ae74ec1f3ed78829d4f3ca76f091390 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |