Dear maintainer,

I've uploaded an NMU for ncurses-hexedit (versioned as 0.9.7+orig-7.2). 
The diff is attached to this message.

cu
Adrian
diff -Nru ncurses-hexedit-0.9.7+orig/debian/changelog ncurses-hexedit-0.9.7+orig/debian/changelog
--- ncurses-hexedit-0.9.7+orig/debian/changelog	2021-02-06 23:35:33.000000000 +0200
+++ ncurses-hexedit-0.9.7+orig/debian/changelog	2023-02-10 02:03:53.000000000 +0200
@@ -1,3 +1,11 @@
+ncurses-hexedit (0.9.7+orig-7.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch from Reiner Herrmann for newer ncurses.
+    (Closes: #997184)
+
+ -- Adrian Bunk <b...@debian.org>  Fri, 10 Feb 2023 02:03:53 +0200
+
 ncurses-hexedit (0.9.7+orig-7.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru ncurses-hexedit-0.9.7+orig/debian/patches/ncurses.patch ncurses-hexedit-0.9.7+orig/debian/patches/ncurses.patch
--- ncurses-hexedit-0.9.7+orig/debian/patches/ncurses.patch	1970-01-01 02:00:00.000000000 +0200
+++ ncurses-hexedit-0.9.7+orig/debian/patches/ncurses.patch	2023-02-10 02:00:57.000000000 +0200
@@ -0,0 +1,25 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Bug-Debian: https://bugs.debian.org/997184
+
+--- a/src/init.c
++++ b/src/init.c
+@@ -385,7 +388,7 @@
+          box (wpopup, 0, 0);
+          wmove (wpopup, 1, (FILE_ERR_WIDTH / 2)
+                  - (strlen (msg) / 2));
+-         wprintw (wpopup, (char *) msg);
++         wprintw (wpopup, "%s", (char *) msg);
+          wmove (wpopup, FILE_ERR_HEIGHT - 3, (FILE_ERR_WIDTH / 2) -
+                 (strlen (strerror (errno)) + strlen ("Reason: ")) / 2);
+          wprintw (wpopup, "Reason: %s", 
+--- a/src/widgets.c
++++ b/src/widgets.c
+@@ -366,7 +368,7 @@
+    if (!rstr.str)
+    {
+       wmove (win, 4, boxleft);
+-      wprintw (win, (char *) NOT_ENOUGH_MEMORY);
++      wprintw (win, "%s", (char *) NOT_ENOUGH_MEMORY);
+       getch ();
+       return NULL;
+    }
diff -Nru ncurses-hexedit-0.9.7+orig/debian/patches/series ncurses-hexedit-0.9.7+orig/debian/patches/series
--- ncurses-hexedit-0.9.7+orig/debian/patches/series	2021-02-06 23:35:31.000000000 +0200
+++ ncurses-hexedit-0.9.7+orig/debian/patches/series	2023-02-10 02:01:23.000000000 +0200
@@ -17,3 +17,4 @@
 fix_buffer_overruns.patch
 fix_spelling_errors.patch
 gcc_10.patch
+ncurses.patch

Reply via email to