[Pcsclite-cvs-commit] Drivers/ccid/src ccid_usb.c,1.32,1.33
rousseau@haydn.debian.org
rousseau@haydn.debian.org
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv23963/src
Modified Files:
ccid_usb.c
Log Message:
OpenUSBByName(): use base 0 instead of 16 in strtoul() so that you can
express the decimal value 15 as: 15 (decimal), 0xF (hex) or 017 (octal).
It is not really needed since the reader descriptions in Info.plist are
all in hex.
Index: ccid_usb.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/ccid_usb.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- ccid_usb.c 16 Jul 2004 06:53:25 -0000 1.32
+++ ccid_usb.c 16 Jul 2004 09:07:26 -0000 1.33
@@ -223,11 +223,11 @@
/* for any supported reader */
while (LTPBundleFindValueWithKey(infofile, PCSCLITE_MANUKEY_NAME, keyValue, alias) == 0)
{
- vendorID = strtoul(keyValue, 0, 16);
+ vendorID = strtoul(keyValue, NULL, 0);
if (LTPBundleFindValueWithKey(infofile, PCSCLITE_PRODKEY_NAME, keyValue, alias))
goto end;
- productID = strtoul(keyValue, 0, 16);
+ productID = strtoul(keyValue, NULL, 0);
if (LTPBundleFindValueWithKey(infofile, PCSCLITE_NAMEKEY_NAME, keyValue, alias))
goto end;