bufread, bufgetdata: Better check for when data isn't ready.
authorNicolas Pennequin <nicolas.pennequin@free.fr>
Tue, 7 Aug 2007 21:37:00 +0000 (23:37 +0200)
committerNicolas Pennequin <nicolas.pennequin@free.fr>
Tue, 7 Aug 2007 21:37:00 +0000 (23:37 +0200)
commit6874d37b18d809aeed43f524001568e233a315e9
treeea5a2e72a4d7d1392a6f19a50db6301b54f14cf8
parent3314377b910b89da979392f3e90342f2097ee157
bufread, bufgetdata: Better check for when data isn't ready.

The only case when the caller should get less data than requested is near
the end of the file. When not enough data has been buffered, the caller has
to wait.
testplugin.c