Use ringbuf_add in buffering when incrementing for initial allocation of non-wrapping...
commit634fb97aae961eccb876cda317c06e70c3fafc1c
authorjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Sun, 13 Mar 2011 11:56:51 +0000 (13 11:56 +0000)
committerjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Sun, 13 Mar 2011 11:56:51 +0000 (13 11:56 +0000)
tree1bf4092efef05374c5bbe2376f2d7f835435463b
parent878f7e5a1b3392aa62b7595a08b86503a2a93d1a
Use ringbuf_add in buffering when incrementing for initial allocation of non-wrapping data. The result of the shortcut would have been wrong if the handle used space exactly to the end of the buffer since buf_widx wouldn't have been properly wrapped to index 0.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29578 a1c6a512-1295-4272-9138-f99709370657
apps/buffering.c