Return correct size if there's enough data in the read buffer
authorHermann Kraus <herm@scribus.info>
Wed, 18 Aug 2010 07:36:29 +0000 (09:36 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 18 Aug 2010 07:36:29 +0000 (09:36 +0200)
commit3094872b920e3b469a6f088f17d2ba5fb6f9804a
treec5a488c4f86696fbc7cc7c6131e9ad669609ea32
parent9162183d5e2ebffea6a41a1a96c9c970bc838ac5
Return correct size if there's enough data in the read buffer

From the mailinglist:

The current git version of libftdi contains a critical bug in
ftdi_read_data. If a read from the device returns more data than requested
the function exits with error -127 (documented as "// never reached")
instead of a correct return code.
src/ftdi.c