fix mix of positional and non-positional printf specifiers

Mon, 19 May 2025 15:10:11 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 19 May 2025 15:10:11 +0200
changeset 50
1ebab6df60c2
parent 49
e4f1aea7df99
child 51
49fdc2eb7cd4

fix mix of positional and non-positional printf specifiers

src/html.cpp file | annotate | diff | comparison | revisions
--- a/src/html.cpp	Mon May 19 15:09:54 2025 +0200
+++ b/src/html.cpp	Mon May 19 15:10:11 2025 +0200
@@ -148,7 +148,7 @@
 
 void html::heading_repo(const std::string& repo) {
     indent();
-    printf("<h1 data-repo=\"%s\">%1$s</h1>\n", encode(repo).c_str());
+    printf("<h1 data-repo=\"%1$s\">%1$s</h1>\n", encode(repo).c_str());
 }
 
 void html::heading_author(const std::string& author, unsigned int total_commits) {

mercurial