1
0
Fork 0
readline/debian/patches/fix-wformat-security.diff
Daniel Baumann c162430179
Adding debian version 8.2-6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 08:05:58 +02:00

16 lines
566 B
Diff

Description: Fix compiling with -Werror=format-security.
Prevents format string attacks.
Author: Simon Ruderich <simon@ruderich.org>
Last-Update: 2012-09-15
--- a/examples/rlfe/rlfe.c
+++ b/examples/rlfe/rlfe.c
@@ -273,7 +273,7 @@ static void maybe_emphasize_input (int o
if (on == current_emphasize_input
|| (on && ! do_emphasize_input))
return;
- fprintf (rl_outstream, on ? start_input_mode : end_input_mode);
+ fprintf (rl_outstream, "%s", on ? start_input_mode : end_input_mode);
fflush (rl_outstream);
current_emphasize_input = on;
}