Disallow libusb_get_string_descriptor_ascii() with index 0
authorKonrad Rzepecki <hannibal@astral.lodz.pl>
Sat, 13 Nov 2010 13:09:22 +0000 (14:09 +0100)
committerPeter Stuge <peter@stuge.se>
Mon, 22 Nov 2010 04:46:40 +0000 (05:46 +0100)
commit0f85015bdf87f3bca0d86ed87c9b976176640922
tree471aea358d83f5a98e4b5d2106065a4bb3987e06
parent3b41c31d3fa2c1f93649cc5fc0f59acbf3efd5a1
Disallow libusb_get_string_descriptor_ascii() with index 0

String descriptor 0 is the list of supported language IDs in the device,
which can't have an ASCII representation. Calling the function with
index 0 is thus not really useful. Fixes #43.
libusb/descriptor.c