[packages/cursedmenu] Rel 8
arekm
arekm at pld-linux.org
Thu May 21 14:55:07 CEST 2026
commit 5ce0055f8338f6eb1d989f2be7aaaa2b0968a8bf
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 21 14:54:46 2026 +0200
Rel 8
cursedmenu-build.patch | 6 +++---
cursedmenu-format-security.patch | 20 ++++++++++++++++++++
cursedmenu.spec | 4 +++-
3 files changed, 26 insertions(+), 4 deletions(-)
---
diff --git a/cursedmenu.spec b/cursedmenu.spec
index 967e83e..55192b0 100644
--- a/cursedmenu.spec
+++ b/cursedmenu.spec
@@ -2,13 +2,14 @@ Summary: ncurses based menu system for character based sessions
Summary(pl.UTF-8): oparty o ncurses system menu dla sesji terminalowych
Name: cursedmenu
Version: 1.0.4
-Release: 7
+Release: 8
License: GPL v3
Group: Applications
Source0: http://dl.sourceforge.net/cursedmenu/%{name}-%{version}.tar.bz2
# Source0-md5: 31e9353ba603b95df3b742bfa3a0ed87
Patch0: %{name}-gcc43.patch
Patch1: %{name}-build.patch
+Patch2: %{name}-format-security.patch
URL: http://cursedmenu.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
@@ -33,6 +34,7 @@ tekstowych, takich jak telnet, ssh czy rlogin.
%setup -q
%patch -P0 -p1
%patch -P1 -p1
+%patch -P2 -p1
%build
CPPFLAGS="%{rpmcflags} -I/usr/include/ncurses"
diff --git a/cursedmenu-build.patch b/cursedmenu-build.patch
index 2bd0859..184fdff 100644
--- a/cursedmenu-build.patch
+++ b/cursedmenu-build.patch
@@ -1,5 +1,5 @@
---- cursedmenu-1.0.4/src/ActionLogger.cc~ 2015-12-12 13:21:02.000000000 +0100
-+++ cursedmenu-1.0.4/src/ActionLogger.cc 2015-12-12 13:21:47.173512693 +0100
+--- cursedmenu-1.0.4/src/ActionLogger.cc.orig
++++ cursedmenu-1.0.4/src/ActionLogger.cc
@@ -25,6 +25,8 @@
#include <string>
#include <time.h>
@@ -8,4 +8,4 @@
+#include <unistd.h>
#include "ActionLogger.hh"
#include "../config.h"
-
+
diff --git a/cursedmenu-format-security.patch b/cursedmenu-format-security.patch
new file mode 100644
index 0000000..233ddac
--- /dev/null
+++ b/cursedmenu-format-security.patch
@@ -0,0 +1,20 @@
+--- cursedmenu-1.0.4/src/main.cc.orig
++++ cursedmenu-1.0.4/src/main.cc
+@@ -125,7 +125,7 @@
+ for ( int y = 1; y < pos_x - 1; y++ )
+ mvwprintw(win, pos_y - 2, y, " ");
+
+- mvwprintw(win, pos_y - 2, 1, desc.c_str());
++ mvwprintw(win, pos_y - 2, 1, "%s", desc.c_str());
+ }
+
+ /**
+@@ -172,7 +172,7 @@
+ whline(menu_window, ACS_HLINE, titleLen + 2);
+
+ // Title
+- mvwprintw(menu_window, 3, centerX, title.c_str());
++ mvwprintw(menu_window, 3, centerX, "%s", title.c_str());
+
+ return;
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cursedmenu.git/commitdiff/5ce0055f8338f6eb1d989f2be7aaaa2b0968a8bf
More information about the pld-cvs-commit
mailing list