summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-01-28 02:39:28 +0100
committermkanat%bugzilla.org <>2008-01-28 02:39:28 +0100
commit132fcaa16d4035e3551a75c63d4de23dc11bb835 (patch)
treec3f84c2ce3555e41e1102d6214749a0be9428466 /Bugzilla
parent46381d01b6e3e1b0143c3fe06224a86b9960d67f (diff)
downloadbugzilla-132fcaa16d4035e3551a75c63d4de23dc11bb835.tar.gz
bugzilla-132fcaa16d4035e3551a75c63d4de23dc11bb835.tar.xz
Bug 410521: The diffs in bugmails were broken and BugMail.pm was throwing a warning about sprintf.
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/BugMail.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index b8680e10b..1085c8b93 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -71,7 +71,7 @@ sub multiline_sprintf {
my ($format, $args, $sizes) = @_;
my @parts;
my @my_sizes = @$sizes; # Copy this so we don't modify the input array.
- while (my $string = shift @$args) {
+ foreach my $string (@$args) {
my $size = shift @my_sizes;
my @pieces = split("\n", wrap_hard($string, $size));
push(@parts, \@pieces);