gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 223/411: scripts/release-notes.pl: don't "embed" $ in format str


From: gnunet
Subject: [gnurl] 223/411: scripts/release-notes.pl: don't "embed" $ in format string for printf()
Date: Wed, 13 Jan 2021 01:20:38 +0100

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit 06488441a59940ac95820139a6368092e70ddff4
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Mon Oct 5 08:29:28 2020 +0200

    scripts/release-notes.pl: don't "embed" $ in format string for printf()
    
    ... since they might contain %-codes that mess up the output!
---
 scripts/release-notes.pl | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/release-notes.pl b/scripts/release-notes.pl
index d26c045a2..efdf9dff8 100755
--- a/scripts/release-notes.pl
+++ b/scripts/release-notes.pl
@@ -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];
     }
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]