linux: take newline into account for sysfs_get_active_config
authorKarsten Koenig <remur@gmx.net>
Wed, 25 Sep 2013 22:08:16 +0000 (18:08 -0400)
committerLudovic Rousseau <ludovic.rousseau+github@gmail.com>
Sat, 28 Sep 2013 10:05:17 +0000 (12:05 +0200)
commitd09389be6f91f5e6a382a90f68916e8ee7444a60
tree3cc02e108f2963d632a87112a4d3c7582a76b382
parente2babf7ec295bde9d0b04fe1c325131dc6aacf51
linux: take newline into account for sysfs_get_active_config

bConfigurationValue in sysfs can be 3 digits (1byte value) + 1 new line
= 4 bytes

In it's current form a bConfigurationValue of 128 will be detected as
not null terminated due to the trailing newline, simple fix is to just
extend the array size to 5
libusb/os/linux_usbfs.c
libusb/version_nano.h