diff options
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3924,7 +3924,7 @@ Perl_sv_usepvn_flags(pTHX_ SV *sv, char *ptr, STRLEN len, U32 flags) assert(ptr[len] == '\0'); allocate = (flags & SV_HAS_TRAILING_NUL) - ? len : PERL_STRLEN_ROUNDUP(len + 1); + ? len + 1: PERL_STRLEN_ROUNDUP(len + 1); #ifdef DEBUGGING { /* Force a move to shake out bugs in callers. */ |