From ff7127b358c0642422f244e0c562518321861014 Mon Sep 17 00:00:00 2001 From: simon75j Date: Tue, 4 Aug 2009 09:01:36 +0000 Subject: [PATCH] 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 --- ykcore/ykcore_libusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5