[Pcsclite-cvs-commit] r2983 - /trunk/Drivers/ccid/src/ccid_serial.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Sun Jun 8 08:31:47 UTC 2008
Author: rousseau
Date: Sun Jun 8 08:31:47 2008
New Revision: 2983
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=2983
Log:
ReadSerial(): return the length of data read in *length
Thanks to Alexander Georg for the bug report
Modified:
trunk/Drivers/ccid/src/ccid_serial.c
Modified: trunk/Drivers/ccid/src/ccid_serial.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ccid_serial.c?rev=2983&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ccid_serial.c (original)
+++ trunk/Drivers/ccid/src/ccid_serial.c Sun Jun 8 08:31:47 2008
@@ -219,7 +219,7 @@
*
*****************************************************************************/
status_t ReadSerial(unsigned int reader_index,
- /*@unused@*/ unsigned int *length, unsigned char *buffer)
+ unsigned int *length, unsigned char *buffer)
{
unsigned char c;
int rv;
@@ -332,6 +332,9 @@
echo = FALSE;
goto start;
}
+
+ /* length of data read */
+ *length = to_read;
return STATUS_SUCCESS;
} /* ReadSerial */
More information about the Pcsclite-cvs-commit
mailing list