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
1 lack 09/04/08 16:40:32
2
3 Added: keyparse_hang.patch
4 Log:
5 Fix hang reported in #263379
6 (Portage version: 2.2_rc27/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 x11-wm/fluxbox/files/keyparse_hang.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/fluxbox/files/keyparse_hang.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/fluxbox/files/keyparse_hang.patch?rev=1.1&content-type=text/plain
13
14 Index: keyparse_hang.patch
15 ===================================================================
16 diff --git a/src/FbTk/StringUtil.hh b/src/FbTk/StringUtil.hh
17 index 75fa69e..35f23a2 100644
18 --- a/src/FbTk/StringUtil.hh
19 +++ b/src/FbTk/StringUtil.hh
20 @@ -84,7 +84,7 @@ static void stringTokensBetween(Container &container, const std::string &in,
21 while (true) {
22 err = getStringBetween(token, in.c_str() + pos, first, last, ok_chars,
23 allow_nesting);
24 - if (err == 0)
25 + if (err <= 0)
26 break;
27 container.push_back(token);
28 pos += err;