powertop/powertop-2.14-format-security-fix.patch
Jaroslav Škarvada 07148100e5 Fixed FTBFS
Resolves: rhbz#2113602
2022-08-04 15:17:46 +02:00

14 lines
352 B
Diff

diff --git a/src/lib.cpp b/src/lib.cpp
index 5e48f37..1fd3fa6 100644
--- a/src/lib.cpp
+++ b/src/lib.cpp
@@ -583,7 +583,7 @@ void ui_notify_user_ncurses(const char *frmt, ...)
* buffer */
vsnprintf(notify, UI_NOTIFY_BUFF_SZ - 1, frmt, list);
va_end(list);
- mvprintw(1, 0, notify);
+ mvprintw(1, 0, "%s", notify);
attroff(COLOR_PAIR(1));
}