-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've found a problem in LinkedList.cc:
check out line 164:
__llist_node *nnode = new __llist_node, *inode = _first->getNext();
how this function works is, if 0 is passed in as the index to insert to,
then the new item is added at the top of the list.
So, the highest in the list one can insert after the top is, of course, at
index 1.
The above line sets inode to _first->getNext, the _second_ element in the
linked list.
If an index of 1 is passed in, then inode is not modified and the new node
is added after inode.
This makes the new node go into index 2, not index 1.
A simple fix for this is to change line 164 to:
__llist_node *nnode = new __llist_node, *inode = _first;
This probly affects most of the bbtools and maybe blackbox itself.. as all
insertions into the linked list have been at (index+1).
xOr
- --
you have no chance to survive make your time
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7Ynps8mPQRGtSu14RAr/iAJ0QM4g5r8IGcg+JOmzHLusvKvvFHwCaA3rg
J0K+ZnjZByVbaZkHgXxNSTE=
=Togk
-----END PGP SIGNATURE-----