diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-04-02 21:03:33 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-04-02 21:03:33 +0000 |
commit | d7c46615e08f67a5be4cde90a507751260ed28ac (patch) | |
tree | f7f0bf83af75e868086e3b2a63e73db7ddde6d20 /sv.c | |
parent | 9df53a21af8cfd9b4c3eeacae85d04aa4e121ff1 (diff) | |
download | perl-d7c46615e08f67a5be4cde90a507751260ed28ac.tar.gz |
In Perl_sv_grow(), no need to do PERL_STRLEN_ROUNDUP() if we have
malloc_size() to get the true allocated space, as PERL_STRLEN_ROUNDUP()
might actually bump the request across an allocation size boundary.
p4raw-id: //depot/perl@33632
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1492,7 +1492,7 @@ Perl_sv_grow(pTHX_ register SV *const sv, register STRLEN newlen) s = SvPVX_mutable(sv); if (newlen > SvLEN(sv)) { /* need more room? */ -#ifndef MYMALLOC +#ifndef Perl_safesysmalloc_size newlen = PERL_STRLEN_ROUNDUP(newlen); #endif if (SvLEN(sv) && s) { |