Message ID | 20240412042722.72002-2-ivan.hu@canonical.com |
---|---|
State | Accepted |
Headers | show |
Series | lib: fwts_log_html: fix the invalid printf format string | expand |
diff --git a/src/lib/src/fwts_log_html.c b/src/lib/src/fwts_log_html.c index 1f6fc931..e8de985d 100644 --- a/src/lib/src/fwts_log_html.c +++ b/src/lib/src/fwts_log_html.c @@ -441,7 +441,7 @@ static void fwts_log_open_html(fwts_log_file *log_file) ".style_subtest { background-color: lightgray; }\n" ".style_infos { max-width:90em }\n" ".style_code { font-family: \"courier\",\"mono\"; font-size:0.75em; overflow:auto; " - "width:90%; line-height:1.08em; font-stretch:extra-condensed; word-wrap:normal }\n"); + "width:90%%; line-height:1.08em; font-stretch:extra-condensed; word-wrap:normal }\n"); fwts_log_html(log_file, "</STYLE>\n"); fflush(log_file->fp);
BugLink: https://bugs.launchpad.net/fwts/+bug/2061067 fix invalid printf format string complained by coverity, CID 323914: (#1 of 1): Invalid printf format string (PRINTF_ARGS) format_error: Invalid conversion specifier in %;. Signed-off-by: Ivan Hu <ivan.hu@canonical.com> --- src/lib/src/fwts_log_html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)