[Pcsclite-cvs-commit] r4716 - /trunk/PCSC/src/winscard.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Feb 5 15:09:16 UTC 2010


Author: rousseau
Date: Fri Feb  5 15:09:14 2010
New Revision: 4716

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4716
Log:
fix a bug introduced by the previous revision

Modified:
    trunk/PCSC/src/winscard.c

Modified: trunk/PCSC/src/winscard.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard.c?rev=4716&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Fri Feb  5 15:09:14 2010
@@ -1474,10 +1474,10 @@
 			 */
 			if (dwAttrId == SCARD_ATTR_DEVICE_FRIENDLY_NAME)
 			{
-				int len = strlen(rContext->lpcReader)+1;
+				unsigned int len = strlen(rContext->lpcReader)+1;
 
 				*pcbAttrLen = len;
-				if (len > pcbAttrLen)
+				if (len > *pcbAttrLen)
 					rv = SCARD_E_INSUFFICIENT_BUFFER;
 				else
 				{




More information about the Pcsclite-cvs-commit mailing list