[Pcsclite-cvs-commit] CVS PCSC/src

CVS User rousseau ludovic.rousseau@free.fr
Sat, 04 Jun 2005 12:59:57 +0000


Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv5039

Modified Files:
	hotplug_linux.c 
Log Message:
HPReadBundleValues(): use >= instead of > to check if too many readers
are declared in the previous patch


--- /cvsroot/pcsclite/PCSC/src/hotplug_linux.c	2005/06/04 12:10:31	1.36
+++ /cvsroot/pcsclite/PCSC/src/hotplug_linux.c	2005/06/04 12:59:57	1.37
@@ -8,7 +8,7 @@
  * The USB code was based partly on Johannes Erdfelt
  * libusb code found at libusb.sourceforge.net
  *
- * $Id: hotplug_linux.c,v 1.36 2005/06/04 12:10:31 rousseau Exp $
+ * $Id: hotplug_linux.c,v 1.37 2005/06/04 12:59:57 rousseau Exp $
  */
 
 /**
@@ -166,7 +166,7 @@
 				listCount++;
 				alias++;
 
-				if (listCount > sizeof(bundleTracker)/sizeof(bundleTracker[0]))
+				if (listCount >= sizeof(bundleTracker)/sizeof(bundleTracker[0]))
 				{
 					Log2(PCSC_LOG_CRITICAL, "Too many readers declared. Maximum is %d", sizeof(bundleTracker)/sizeof(bundleTracker[0]));
 					goto end;