Gentoo Archives: gentoo-commits

From: "Jim Ramsay (lack)" <lack@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-wm/fluxbox/files: keyparse_hang.patch
Date: Wed, 08 Apr 2009 16:40:34
Message-Id: E1LrapE-0006vI-TO@stork.gentoo.org
lack        09/04/08 16:40:32

  Added:                keyparse_hang.patch
  Log:
  Fix hang reported in #263379
  (Portage version: 2.2_rc27/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  x11-wm/fluxbox/files/keyparse_hang.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/fluxbox/files/keyparse_hang.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/fluxbox/files/keyparse_hang.patch?rev=1.1&content-type=text/plain

Index: keyparse_hang.patch
===================================================================
diff --git a/src/FbTk/StringUtil.hh b/src/FbTk/StringUtil.hh
index 75fa69e..35f23a2 100644
--- a/src/FbTk/StringUtil.hh
+++ b/src/FbTk/StringUtil.hh
@@ -84,7 +84,7 @@ static void stringTokensBetween(Container &container, const std::string &in,
     while (true) {
         err = getStringBetween(token, in.c_str() + pos, first, last, ok_chars,
                                allow_nesting);
-        if (err == 0)
+        if (err <= 0)
             break;
         container.push_back(token);
         pos += err;