rem: aItems = aItems.slice(0, numToSend); 
add: aItems = aItems.slice(0, aCount); 
context:     onGetResult: function (aCalendar, aStatus, aItemType, aDetail, aCount, aItems) {        if (!this.mRealListener) {            // has been cancelled, ignore any providers firing on this...            return;        }        if (this.mFinished) {            dump ("+++ calCompositeGetListenerHelper.onGetResult: called with mFinished == true!");            return;        }        // ignore if we have a max and we're past it        if (this.mMaxItems && this.mItemsReceived >= this.mMaxItems)            return;        if (Components.isSuccessCode(aStatus) &&            this.mMaxItems &&            ((this.mItemsReceived + aCount) > this.mMaxItems))        {            // this will blow past the limit            aCount = this.mMaxItems - this.mItemsReceived;            aItems = aItems.slice(0, numToSend);        }        // send GetResults to the real listener        this.mRealListener.onGetResult (aCalendar, aStatus, aItemType, aDetail, aCount, aItems);        this.mItemsReceived += aCount;    }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/a9f132fade8f6ab5623ac482ebd17526f71b33b8/calCompositeCalendar.js/buggy/calendar/providers/composite/calCompositeCalendar.js