File: add.format.arguments.patch

package info (click to toggle)
webdruid 0.5.4-16
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 3,428 kB
  • sloc: ansic: 10,821; sh: 181; makefile: 112
file content (13 lines) | stat: -rw-r--r-- 572 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
Add format argument to avoid format-security error while building.

--- a/output.c
+++ b/output.c
@@ -1864,7 +1864,7 @@
          if(pcent >= 1)
             snprintf(buffer, sizeof(buffer), _2utf8(_("%.0f%% of all requests")), pcent);
          else
-            snprintf(buffer, sizeof(buffer), _2utf8(_("less than 1%% of all requests")));
+            snprintf(buffer, sizeof(buffer), "%s", _2utf8(_("less than 1%% of all requests")));
 
          fprintf(main_fp, "<TR>\n");
          fprintf(main_fp, "   <TH BGCOLOR=\"#FFFF00\" ALIGN=LEFT COLSPAN=5>%s (%s)</TH>\n",