File: silence_a_Wformat-security_warning.patch

package info (click to toggle)
rlwrap 0.46.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 868 kB
  • sloc: ansic: 6,474; perl: 1,658; python: 977; ruby: 246; makefile: 47; sh: 23
file content (18 lines) | stat: -rw-r--r-- 626 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Fix ftbfs with GCC-15
Author: Hans Lub
Origin: https://github.com/hanslub42/rlwrap/commit/08c7b0135c80d34dfa2e36889d0235f31401903c
Bug-Debian: http://bugs.debian.org/1097797

Index: rlwrap-0.46.1/src/readline.c
===================================================================
--- rlwrap-0.46.1.orig/src/readline.c
+++ rlwrap-0.46.1/src/readline.c
@@ -189,7 +189,7 @@ message_in_echo_area(char *message)
   if (message) {
     rl_save_prompt();
     message_in_echo_area = TRUE;  
-    rl_message(message);
+    rl_message("%s", message);
   }  else {
     if (message_in_echo_area)
       rl_restore_prompt();