From c13b0b76ffd7f2042a4a97454be0bdb18b53779b Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 3 Dec 2008 11:50:37 +0000 Subject: [PATCH] Fix insecure dependency in printf. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5509 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect-stat.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prog/detect/sensors-detect-stat.pl b/prog/detect/sensors-detect-stat.pl index c2753a85..b82fa7f2 100755 --- a/prog/detect/sensors-detect-stat.pl +++ b/prog/detect/sensors-detect-stat.pl @@ -3,7 +3,7 @@ # sensors-detect-stat.pl # Statistical analysis of sensors-detect i2c addresses scanner # Part of the lm_sensors project -# Copyright (C) 2003-2007 Jean Delvare +# Copyright (C) 2003-2008 Jean Delvare # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -80,8 +80,8 @@ while () close SD; # Print the data. -printf "$file knows \%d chips and scans \%d addresses.\n\n", - $chips, scalar keys %histo; +printf "\%s knows \%d chips and scans \%d addresses.\n\n", + $file, $chips, scalar keys %histo; print " 0 1 2 3 4 5 6 7 8 9 a b c d e f\n"; for (my $i=0; $i<128; $i+=16) {