allocated space for an initialised a trailing NUL.
p4raw-id: //depot/perl@27843
needlen = ((optype == OP_BIT_AND)
? len : (leftlen > rightlen ? leftlen : rightlen));
Newxz(dc, needlen + 1, char);
- (void)sv_usepvn(sv, dc, needlen);
+ sv_usepvn_flags(sv, dc, needlen, SV_HAS_TRAILING_NUL);
dc = SvPVX(sv); /* sv_usepvn() calls Renew() */
}
SvCUR_set(sv, len);