From 132fcaa16d4035e3551a75c63d4de23dc11bb835 Mon Sep 17 00:00:00 2001
From: "mkanat%bugzilla.org" <>
Date: Mon, 28 Jan 2008 01:39:28 +0000
Subject: [PATCH] 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

---
 Bugzilla/BugMail.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.24.1