1 From: Petter Reinholdtsen <pere@hungry.com>
2 Date: Wed, 22 Oct 2014 13:25:21 +0200
3 Subject: Fix format error blocking compilation with hardening
5 Last-Update: 2014-10-22
8 Enabling hardening refuses to compile code with sprintf() calls
9 with no formatting string. Adjust the code to work with hardening.
11 ogg123/status.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
14 diff --git a/ogg123/status.c b/ogg123/status.c
15 index 92b8ff1..ccec389 100644
18 @@ -148,7 +148,7 @@ int print_statistics_line (stat_format_t stats[])
20 switch (stats->type) {
22 - len += sprintf(str+len, stats->formatstr);
23 + len += sprintf(str+len, "%s", stats->formatstr);
26 len += sprintf(str+len, stats->formatstr, stats->arg.intarg);