projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e11062
)
Fix bug introduced with change 27841. (len + 1, not just len).
author
Nicholas Clark
<nick@ccl4.org>
Sun, 16 Apr 2006 21:44:59 +0000
(21:44 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Sun, 16 Apr 2006 21:44:59 +0000
(21:44 +0000)
p4raw-id: //depot/perl@27852
sv.c
patch
|
blob
|
history
diff --git
a/sv.c
b/sv.c
index 308ecf8a8c6fa1eab36fd798f05d323a437b27e0..429794fc9899b25ed26b8abf999380665d83a4a9 100644
(file)
--- a/
sv.c
+++ b/
sv.c
@@
-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. */