[Pcsclite-cvs-commit] r2123 - trunk/Drivers/ccid/src

Ludovic Rousseau rousseau at costa.debian.org
Mon Aug 7 10:05:41 UTC 2006


Author: rousseau
Date: 2006-08-07 10:05:40 +0000 (Mon, 07 Aug 2006)
New Revision: 2123

Modified:
   trunk/Drivers/ccid/src/defs.h
Log:
CMD_BUF_SIZE should not include a byte for the cmd. This definition was
reused as-is from the ifd-gempc source code.

Thanks to Wolfgang Glas for the bug report


Modified: trunk/Drivers/ccid/src/defs.h
===================================================================
--- trunk/Drivers/ccid/src/defs.h	2006-08-03 13:14:27 UTC (rev 2122)
+++ trunk/Drivers/ccid/src/defs.h	2006-08-07 10:05:40 UTC (rev 2123)
@@ -61,8 +61,8 @@
 /* Flag set when a power down is requested */
 #define MASK_POWERFLAGS_PDWN 0x02
 
-/* Communication buffer size (max=cmd+adpu+Lc+data+Le) */
-#define CMD_BUF_SIZE (1+4+1+256+1)
+/* Communication buffer size (max=adpu+Lc+data+Le) */
+#define CMD_BUF_SIZE (4+1+256+1)
 /* Larger communication buffer size (max=reader status+data+sw) */
 #define RESP_BUF_SIZE (1+256+2)
 




More information about the Pcsclite-cvs-commit mailing list