[Pcsclite-cvs-commit] r1749 - trunk/Drivers/ccid/examples

Ludovic Rousseau rousseau at costa.debian.org
Thu Nov 24 16:12:22 UTC 2005


Author: rousseau
Date: 2005-11-24 16:12:21 +0000 (Thu, 24 Nov 2005)
New Revision: 1749

Modified:
   trunk/Drivers/ccid/examples/scardcontrol.c
Log:
use a buffer of 40 instead of 10 to reader the keyboard since the PIN
may be longer than 8 digits


Modified: trunk/Drivers/ccid/examples/scardcontrol.c
===================================================================
--- trunk/Drivers/ccid/examples/scardcontrol.c	2005-11-24 16:00:29 UTC (rev 1748)
+++ trunk/Drivers/ccid/examples/scardcontrol.c	2005-11-24 16:12:21 UTC (rev 1749)
@@ -348,7 +348,7 @@
 		if (select(1, &fd, NULL, NULL, &timeout) > 0)
 		{
 			/* read the fake digits */
-			char in[10];	/* 4 digits + \n + \0 */
+			char in[40];	/* 4 digits + \n + \0 */
 			(void)fgets(in, sizeof(in), stdin);
 
 			printf("keyboard sent: %s", in);
@@ -487,7 +487,7 @@
 		if (select(1, &fd, NULL, NULL, &timeout) > 0)
 		{
 			/* read the fake digits */
-			char in[10];	/* 4 digits + \n + \0 */
+			char in[40];	/* 4 digits + \n + \0 */
 			(void)fgets(in, sizeof(in), stdin);
 
 			printf("keyboard sent: %s", in);




More information about the Pcsclite-cvs-commit mailing list