On 14-Dec-2001 Paul Kincaid wrote:
> Just installed 0.61.2pre4 and now anytime I try and launch bbkeys,
> bbmail, etc from a terminal window, blackbox crashes and core dumps.
>
> I need some help running gdb -- how exactly do I start gdb, X and
> blackbox to catch the core dump?
>
> Once I get gdb catching the core dump, I'll give a more detailed
> description of the problem - cause knowing my luck, its probably just my
> set up....
>
> Thanks,
> Paul
>
diff -pruN blackbox-0.61.2pre4/src/Screen.cc blackbox-0.61.2pre5/src/Screen.cc
--- blackbox-0.61.2pre4/src/Screen.cc Fri Dec 14 21:53:45 2001
+++ blackbox-0.61.2pre5/src/Screen.cc Fri Dec 14 21:50:29 2001
@@ -1428,7 +1428,7 @@ void BScreen::addNetizen(Netizen *n) {
LinkedListIterator<Workspace> it(workspacesList);
for (Workspace *w = it.current(); w; it++, w = it.current()) {
- for (int i = 0; w->getCount(); i++)
+ for (int i = 0; i < w->getCount(); i++)
n->sendWindowAdd(w->getWindow(i)->getClientWindow(),
w->getWorkspaceID());
}
The problems with code refactoring is sometimes you goof.