Avoid using g_list_length() in the list iterator, occasional weirdness was
experienced (the loop terminated with a bad memory access and the value of z was far too high) and performance the is likely to have been lower.
CVS patchset: 3832
CVS date: 2004/09/20 12:15:37
Mercurial revision: 98c86b17e03de5c559bc3cad6016934967415cd8