bufread: Make it behave correctly.working_mob
authorNicolas Pennequin <nicolas.pennequin@free.fr>
Sat, 4 Aug 2007 19:14:47 +0000 (21:14 +0200)
committerNicolas Pennequin <nicolas.pennequin@free.fr>
Sat, 4 Aug 2007 19:14:47 +0000 (21:14 +0200)
commita1579ba86df9787c9ff706580380e5474df5b808
tree7764e312aa7667b225bf56ccfe4d504a0e70bb3a
parentd1be61dc61c4746059b3ef48bce4d942c3382514
bufread: Make it behave correctly.

* Correct the behaviour towards the end of the file (it simply wasn't detected).
* Don't advance the buffer reading pointer.
* Don't change h->available !!

Tested successfully on target (gigabeat) and in the sim.
testplugin.c