From db9688b1808c97fa0961bdd3f7919b17b760b163 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 11 Aug 2025 15:33:12 +0200 Subject: Escape CSS % in printf format The % symbol causes a printf format for %; which fails in musl, causing the loop in dStr_vprintfa() to continue expading the buffer. Fixes: https://github.com/dillo-browser/dillo/issues/429 --- dpi/vsource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dpi/vsource.c') diff --git a/dpi/vsource.c b/dpi/vsource.c index 58f89f96..ca6c9182 100644 --- a/dpi/vsource.c +++ b/dpi/vsource.c @@ -4,7 +4,7 @@ * This server is an example. Play with it and modify to your taste. * * Copyright 2010-2015 Jorge Arellano Cid - * Copyright 2024 Rodrigo Arias Mallo + * Copyright 2024-2025 Rodrigo Arias Mallo * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -124,7 +124,7 @@ void send_html_text(Dsh *sh, const char *url, int data_size) " white-space: pre-wrap;\n" " font-family: monospace;\n" " margin: 0;\n" - " width: 100%;\n" + " width: 100%%;\n" " }\n" " table { border:0 }\n" " td.num {\n" -- cgit v1.2.3