postwait/node-amqp — pull request #66 by squaremo (2012-02-09 13:06:24+00:00)
Title: Fix issue 65: Get arguments to copy in the right order and update frameBuffer.used

The first bug only manifests with frames that must be sent over multiple packets; otherwise, a new frame buffer is cons'ed anyway. The second bug means that message bodies sent over more than one data packet were junk, since they were copied over the existing frame data; but worse, that frames never ended, since the number of data remaining for the frame is calculated from frameBuffer.used.