Let's agree upon that I'll proovide the complete patch as soon as you repost all the patches from the very beginning (with the updates you've made).And in case transfers is an array, we should either be apriory aware of whether the chaining will take place or allocate an array large enough to hold additional transfers. Neither of these look good to me, and having a linked list of transfers will definitely solve this problem.
Well, that's the guts of the good example I was hoping you would share.
I'll be posting a refresh of this code soonish; maybe you can provide a complete patch, changing all the code over to use list-not-array?