all repos — fluxbox @ a92136b4e8ece247ed5fda363722f7f2b984fbcf

custom fork of the fluxbox windowmanager

for loop waited for negative value on unsigned type. Fixed to check for
zero in break case.
rathnor rathnor
commit

a92136b4e8ece247ed5fda363722f7f2b984fbcf

parent

64c9a446ba7c61775f2cb6fc313001ac63c4231d

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/Tab.ccsrc/Tab.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Tab.cc,v 1.37 2002/10/29 16:03:15 fluxgen Exp $ +// $Id: Tab.cc,v 1.38 2002/11/12 16:13:24 rathnor Exp $ #include "Tab.hh"

@@ -389,7 +389,7 @@ for (; dlen >= 0; dlen--) {

l = winstyle->tab.font.textWidth(m_win->getTitle().c_str(), dlen); l += (dx * 4); - if (l < m_size_w) + if (l < m_size_w || dlen == 0) break; } }