Fix a problem when wrapping around in the vchan circular buffer

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #5 from jonludlam/fix-circ-buffer

Fix a problem when wrapping around in the vchan circular buffer