Browse Source

bin2mif: fast_ram expects unpacked decimal filename indicies

H. Peter Anvin 3 years ago
parent
commit
4771d428e2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fw/bin2mif.pl

+ 1 - 1
fw/bin2mif.pl

@@ -27,7 +27,7 @@ for (my $s = 0; $s < $stride; $s++) {
     my $ofname = $outfile;
     if ($stride > 1) {
 	$outfile =~ /^(.*?)(\.\w+)?$/;
-	$ofname = sprintf("%s.%0${sdig}x%s", $1, $s, $2);
+	$ofname = sprintf("%s.%d%s", $1, $s, $2);
     }
     
     open(my $out, '>', $ofname) or die;