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=728281829adbcb7c7ae4320d68140c13da2c64ed

commit 728281829adbcb7c7ae4320d68140c13da2c64ed
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Jan 2 12:55:26 2025 +0100

    dselect: Update the search varbuf to account for the used size
    
    We pass the varbuf to an ncurses library function that will fill it up
    with user typed content, so we need to update its used size, so that
    subsequent functions are aware that the varbuf has content.
    
    Fixes: commit c11a69207d031b7d2260dd0108b91b27b22dea1e
    Closes: #1091898
    Changelog: internal
---
 dselect/basecmds.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dselect/basecmds.cc b/dselect/basecmds.cc
index e78bb1657..d2db102ce 100644
--- a/dselect/basecmds.cc
+++ b/dselect/basecmds.cc
@@ -125,6 +125,7 @@ void baselist::kd_search() {
   echo();
   if (wgetnstr(querywin, newsearchstring.buf, newsearchstring.size - 1) == ERR)
     searchstring.reset();
+  newsearchstring.trunc(strlen(newsearchstring.buf));
   resize_window();
   noecho();
   if (whatinfo_height) { touchwin(whatinfowin); refreshinfo(); }

-- 
Dpkg.Org's dpkg

Reply via email to