diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-04-27 20:24:30 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-04-27 20:24:30 +0000 |
commit | 8569b9dcecd37c8ddfb10cf00cd3f0a1d60426a0 (patch) | |
tree | 6def01cc9d21facbb663795134aa5925fae2da4d /pp.c | |
parent | de009b76d60bdeb88f1d812ac755ae225805a071 (diff) | |
download | perl-8569b9dcecd37c8ddfb10cf00cd3f0a1d60426a0.tar.gz |
A couple of warning fixes by Gisle
p4raw-id: //depot/perl@24339
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1493,7 +1493,7 @@ PP(pp_repeat) if (len > ((MEM_SIZE)~0)/count) Perl_croak(aTHX_ oom_string_extend); MEM_WRAP_CHECK_1(max, char, oom_string_extend); - SvGROW(TARG, (count * len) + 1); + SvGROW(TARG, max + 1); repeatcpy(SvPVX(TARG) + len, SvPVX(TARG), len, count - 1); SvCUR_set(TARG, SvCUR(TARG) * count); } |