Dear maintainer,

I've prepared an NMU for horst (versioned as 5.1-2.1) and uploaded
it to DELAYED/14. Please feel free to tell me if I should cancel it.

cu
Adrian
diff -Nru horst-5.1/debian/changelog horst-5.1/debian/changelog
--- horst-5.1/debian/changelog	2019-02-01 17:29:06.000000000 +0200
+++ horst-5.1/debian/changelog	2021-11-28 20:51:58.000000000 +0200
@@ -1,3 +1,11 @@
+horst (5.1-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch from Sven Joachim to fix FTBFS with new ncurses.
+    (Closes: #995202)
+
+ -- Adrian Bunk <b...@debian.org>  Sun, 28 Nov 2021 20:51:58 +0200
+
 horst (5.1-2) unstable; urgency=medium
 
   * Bug fix: "horst FTCBFS: upstream Makefile hard codes build
diff -Nru horst-5.1/debian/patches/0001-Fix-string-format-errors-with-recent-ncurses.patch horst-5.1/debian/patches/0001-Fix-string-format-errors-with-recent-ncurses.patch
--- horst-5.1/debian/patches/0001-Fix-string-format-errors-with-recent-ncurses.patch	1970-01-01 02:00:00.000000000 +0200
+++ horst-5.1/debian/patches/0001-Fix-string-format-errors-with-recent-ncurses.patch	2021-11-28 20:51:36.000000000 +0200
@@ -0,0 +1,39 @@
+From 8110d832bd6502b7caed75b6504bd6d24d30d36b Mon Sep 17 00:00:00 2001
+From: Sven Joachim <svenj...@gmx.de>
+Date: Thu, 14 Oct 2021 20:06:26 +0200
+Subject: [PATCH] Fix string format errors with recent ncurses
+
+---
+ display-main.c | 2 +-
+ display.c      | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/display-main.c b/display-main.c
+index b613291..6519895 100644
+--- a/display-main.c
++++ b/display-main.c
+@@ -53,7 +53,7 @@ static struct ewma bpsn_avg;
+ void print_dump_win(const char *str, int refresh)
+ {
+ 	wattron(dump_win, RED);
+-	wprintw(dump_win, str);
++	wprintw(dump_win, "%s", str);
+ 	wattroff(dump_win, RED);
+ 	if (refresh)
+ 		wrefresh(dump_win);
+diff --git a/display.c b/display.c
+index 777c7a2..e0755f4 100644
+--- a/display.c
++++ b/display.c
+@@ -86,7 +86,7 @@ print_centered(WINDOW* win, int line, int cols, const char *fmt, ...)
+ 	vsnprintf(buf, cols, fmt, ap);
+ 	va_end(ap);
+
+-	mvwprintw(win, line, cols / 2 - strlen(buf) / 2, buf);
++	mvwprintw(win, line, cols / 2 - strlen(buf) / 2, "%s", buf);
+ 	free(buf);
+ }
+
+--
+2.33.0
+
diff -Nru horst-5.1/debian/patches/series horst-5.1/debian/patches/series
--- horst-5.1/debian/patches/series	2019-02-01 17:29:06.000000000 +0200
+++ horst-5.1/debian/patches/series	2021-11-28 20:51:57.000000000 +0200
@@ -1,3 +1,4 @@
 cross.patch
 0001-add-support-for-PREFIX.patch
 0001-install-manpages-in-share-properly-Closes-91.patch
+0001-Fix-string-format-errors-with-recent-ncurses.patch

Reply via email to