From: simon75j Date: Tue, 4 Aug 2009 09:01:36 +0000 (+0000) Subject: Make _ykusb_read return number of read bytes rather than 1. X-Git-Tag: yubikey-personalisation_0.97-1~58 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff7127b358c0642422f244e0c562518321861014;p=yubikey-personalization.old Make _ykusb_read return number of read bytes rather than 1. Reported by Tollef Fog Heen . git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@114 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- diff --git a/ykcore/ykcore_libusb.c b/ykcore/ykcore_libusb.c index 5f82656..8d8c835 100644 --- a/ykcore/ykcore_libusb.c +++ b/ykcore/ykcore_libusb.c @@ -120,7 +120,7 @@ int _ykusb_read(void *dev, int report_type, int report_number, rc = rc2; } if (rc >= 0) - return 1; + return rc; yk_errno = YK_EUSBERR; return 0; }