]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
badwords.pl: fix variable in printf mask
authorViktor Szakats <commit@vsz.me>
Fri, 14 Nov 2025 16:57:03 +0000 (17:57 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 14 Nov 2025 17:14:31 +0000 (18:14 +0100)
Causing warnings if a matched line has mask patterns.

Closes #19534

.github/scripts/badwords.pl

index c6229f4ad402235ff7e835ed913552313ae96214..e119617d0a9a70120a502e6e1bef7c93001bf56a 100755 (executable)
@@ -94,7 +94,7 @@ sub file {
                 }
 
                 print STDERR  "$f:$l:$c: error: found bad word \"$w\"\n";
-                printf STDERR " %4d | $in\n", $l;
+                printf STDERR " %4d | %s\n", $l, $in;
                 printf STDERR "      | %*s^%s\n", length($p), " ",
                     "~" x (length($w)-1);
                 printf STDERR " maybe use \"%s\" instead?\n", $alt{$w};