Sfoglia il codice sorgente

dselect: Fix word wrapping logic

The switch from integer literal to boolean literals botched one of the
assignments, which was turned from 1 to false, fix that now, and stop
turning parts of the code path dead.

Regression introduced in commit cf21cccb98bdb31a84bbe1aa1217c712b47aedd2.

Warned-by: coverity
Guillem Jover 12 anni fa
parent
commit
42f8e27790
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 1 0
      debian/changelog
  2. 1 1
      dselect/baselist.cc

+ 1 - 0
debian/changelog

@@ -4,6 +4,7 @@ dpkg (1.17.10) UNRELEASED; urgency=low
   * Use libtool to build the static libraries, which makes it possible to
     embed libcompat inside libdpkg, as required by some external programs
     linking against the latter. Closes: #746122
+  * Fix word wrapping logic in dselect. Regression introduced in dpkg 1.17.3.
 
   [ Updated manpages translations ]
   * German (Helge Kreutzmann).

+ 1 - 1
dselect/baselist.cc

@@ -364,7 +364,7 @@ void baselist::wordwrapinfo(int offset, const char *m) {
         if (l <= 0) break;
         waddch(infopad,'\n');
       }
-      wrapping = false;
+      wrapping = true;
     }
     if (!p) break;
     if (getcury(infopad) == (MAX_DISPLAY_INFO - 1)) {