bufgetdata(): fix the available vs. required check.
commit11702bc00d048747bf6306c04264eb470e763461
authorNicolas Pennequin <nicolas@nicolas-laptop.(none)>
Mon, 8 Oct 2007 17:42:26 +0000 (8 19:42 +0200)
committerlearman <learman@a1c6a512-1295-4272-9138-f99709370657>
Thu, 25 Oct 2007 19:18:20 +0000 (25 19:18 +0000)
tree6c79c320e6ef6e419dbe8c4ab03fdf0da1fab24d
parentdf7b1dbf238dd4c2021ebffd56235b88fbd8a4f4
bufgetdata(): fix the available vs. required check.

Available data for the caller isn't the same as what's available to the
buffering system. What's before h->ridx doesn't interest the caller, so
check size against the proper value.
apps/buffering.c