Files
nixpkgs/pkgs/by-name/fr/freesweep/0002-fix-Wformat-security.patch
sanana 96c99d0145 freesweep: 1.0.2 -> 1.0.2-unstable-2024-04-19
freesweep has a new version in development and it seems to be usable,
let's update to it. I included a few patches to allow it to build
with and without mlibc (which I'm working on in #371092).
2025-01-25 18:24:09 +03:00

14 lines
367 B
Diff

diff --git a/logs.c b/logs.c
index 5e87f52..29ad433 100644
--- a/logs.c
+++ b/logs.c
@@ -128,7 +128,7 @@ static void log_display(const char *mesg) {
// Display the message on the screen.
if (log_win) {
wclear(log_win);
- mvwprintw(log_win, 0, 0, mesg);
+ mvwprintw(log_win, 0, 0, "%s", mesg);
wnoutrefresh(log_win);
wrefresh(log_win);
}