[Pcsclite-cvs-commit] PCSC/src hotplug_linux.c,1.23,1.24

rousseau@quantz.debian.org rousseau@quantz.debian.org
Wed, 04 Feb 2004 22:48:02 +0100


Update of /cvsroot/pcsclite/PCSC/src
In directory quantz:/tmp/cvs-serv26291

Modified Files:
	hotplug_linux.c 
Log Message:
DIR in --enable-usbdropdir=DIR may not finish by / in (deprecated) hotplug_linux.c


Index: hotplug_linux.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/hotplug_linux.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- hotplug_linux.c	20 Jan 2004 07:09:30 -0000	1.23
+++ hotplug_linux.c	4 Feb 2004 21:48:00 -0000	1.24
@@ -113,8 +113,8 @@
 			 * The bundle exists - let's form a full path name and get the
 			 * vendor and product ID's for this particular bundle
 			 */
-			snprintf(fullPath, FILENAME_MAX, "%s%s%s", PCSCLITE_HP_DROPDIR,
-				currFP->d_name, "/Contents/Info.plist");
+			snprintf(fullPath, FILENAME_MAX, "%s/%s/Contents/Info.plist",
+				PCSCLITE_HP_DROPDIR, currFP->d_name);
 			fullPath[FILENAME_MAX - 1] = '\0';
 
 			/* while we find a nth ifdVendorID in Info.plist */