From ef04a4eb790dc765e8027ec1c0776366cb200c9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Kr=C3=BCger?= Date: Wed, 24 Nov 2010 20:28:01 +0100 Subject: [PATCH] jobd: fix accidental scalarification in ferror() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Turns out that sprintf() expects a scalar as its first argument, so we unwittingly turned the entire argument list of ferror() into a scalar. So, instead, use the first argument separately when calling sprintf(). Signed-off-by: Jan Krüger --- jobd/jobd.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobd/jobd.pl b/jobd/jobd.pl index 9b8b748..0c78057 100755 --- a/jobd/jobd.pl +++ b/jobd/jobd.pl @@ -336,7 +336,7 @@ sub error($) { print STDERR ts().shift()."\n"; } sub ferror(@) { - error(sprintf(@_)); + error(sprintf($_[0], @_[1..$#_])); } sub fatal($) { error(shift); -- 2.11.4.GIT