]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
scripts/release-notes.pl: don't "embed" $ in format string for printf()
authorDaniel Stenberg <daniel@haxx.se>
Mon, 5 Oct 2020 06:29:28 +0000 (08:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 5 Oct 2020 06:29:28 +0000 (08:29 +0200)
... since they might contain %-codes that mess up the output!

scripts/release-notes.pl

index d26c045a200aab880d7e07c32a75155b0fd97113..efdf9dff88d81a7759499456b69e88c10422a866 100755 (executable)
@@ -156,7 +156,8 @@ for my $l (@releasenotes) {
         push @o, $l;
         push @o, "\n";
         for my $f (@line) {
-            push @o, sprintf " o $f%s\n", $moreinfo{$f}? sprintf(" [%d]", $moreinfo{$f}): "";
+            push @o, sprintf " o %s%s\n", $f,
+                $moreinfo{$f}? sprintf(" [%d]", $moreinfo{$f}): "";
             $refused[$moreinfo{$f}]=3;
         }
         push @o, " --- new entries are listed above this ---";
@@ -208,6 +209,6 @@ exit;
 # Debug: show unused references
 for my $r (1 .. $#refs) {
     if($refused[$r] != 3) {
-        printf "$r is %d!\n", $refused[$r];
+        printf "%s is %d!\n", $r, $refused[$r];
     }
 }