summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-04-27 20:24:30 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-04-27 20:24:30 +0000
commit8569b9dcecd37c8ddfb10cf00cd3f0a1d60426a0 (patch)
tree6def01cc9d21facbb663795134aa5925fae2da4d /pp.c
parentde009b76d60bdeb88f1d812ac755ae225805a071 (diff)
downloadperl-8569b9dcecd37c8ddfb10cf00cd3f0a1d60426a0.tar.gz
A couple of warning fixes by Gisle
p4raw-id: //depot/perl@24339
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index e3773b229e..ca4f61d4cb 100644
--- a/pp.c
+++ b/pp.c
@@ -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);
}