From 1c38c7a67e9d4d68e27c6ad183d1cccbb5596ddf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:51:57 +0200 Subject: Adding debian version 8.2-1.3. Signed-off-by: Daniel Baumann --- debian/patches/fix-wformat-security.diff | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 debian/patches/fix-wformat-security.diff (limited to 'debian/patches/fix-wformat-security.diff') diff --git a/debian/patches/fix-wformat-security.diff b/debian/patches/fix-wformat-security.diff new file mode 100644 index 0000000..5fb71a2 --- /dev/null +++ b/debian/patches/fix-wformat-security.diff @@ -0,0 +1,16 @@ +Description: Fix compiling with -Werror=format-security. + Prevents format string attacks. +Author: Simon Ruderich +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; + } -- cgit v1.2.3