This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=abdca470d2cdcdc2cc0b244d75adb3a96f411a6c commit abdca470d2cdcdc2cc0b244d75adb3a96f411a6c Author: Guillem Jover <[email protected]> AuthorDate: Thu Jan 2 12:55:26 2025 +0100 dselect: Make sure the search varbuf always has allocated space We need to pass this buffer to the ncurses library functions, which expect an allocated buffer. Make sure we allocate some space for it. Fixes: commit c11a69207d031b7d2260dd0108b91b27b22dea1e Ref: #1091898 Changelog: internal --- dselect/basecmds.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dselect/basecmds.cc b/dselect/basecmds.cc index 92f7db893..e78bb1657 100644 --- a/dselect/basecmds.cc +++ b/dselect/basecmds.cc @@ -117,7 +117,8 @@ baselist::matchsearch(int index) } void baselist::kd_search() { - varbuf newsearchstring(searchstring); + varbuf newsearchstring(128); + newsearchstring = searchstring; werase(querywin); mvwaddstr(querywin,0,0, _("Search for ? ")); -- Dpkg.Org's dpkg

