View | Details | Raw Unified | Return to bug 112964
Collapse All | Expand All

(-)pcsc-lite-1.2.9-beta6.orig/src/hotplug_libusb.c (-1 / +1 lines)
Lines 372-378 Link Here
372
372
373
	snprintf(deviceName, sizeof(deviceName), "usb:%04x/%04x:libusb:%s",
373
	snprintf(deviceName, sizeof(deviceName), "usb:%04x/%04x:libusb:%s",
374
		dev->descriptor.idVendor, dev->descriptor.idProduct, bus_device);
374
		dev->descriptor.idVendor, dev->descriptor.idProduct, bus_device);
375
	deviceName[sizeof(deviceName)] = '\0';
375
	deviceName[sizeof(deviceName) - 1] = '\0';
376
376
377
	/* find a free entry */
377
	/* find a free entry */
378
	for (i=0; i<PCSCLITE_MAX_READERS_CONTEXTS; i++)
378
	for (i=0; i<PCSCLITE_MAX_READERS_CONTEXTS; i++)

Return to bug 112964