aboutsummaryrefslogtreecommitdiff
path: root/dpi/vsource.c
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2025-08-11 15:33:12 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2025-08-11 21:28:14 +0200
commitdb9688b1808c97fa0961bdd3f7919b17b760b163 (patch)
tree77a51a5b6559d3fd5783dc944549ea36f8d98bea /dpi/vsource.c
parentb88506f619950640a7ea0dc3a1f615dc71068674 (diff)
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
Diffstat (limited to 'dpi/vsource.c')
-rw-r--r--dpi/vsource.c4
1 files changed, 2 insertions, 2 deletions
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 <jcid@dillo.org>
- * Copyright 2024 Rodrigo Arias Mallo <rodarima@gmail.com>
+ * Copyright 2024-2025 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* 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"