summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2020-11-29 21:56:29 +0100
committerPali Rohár <pali.rohar@gmail.com>2020-11-29 21:56:29 +0100
commit4ae1f136248a2c989197ef0c6ad016ffa3372a59 (patch)
tree3359a2527894eea38fc0a038f59c1896180e365f /src
parent69a7c2705edda6eadb7b80816b0aa4138409ebae (diff)
download0xFFFF-4ae1f136248a2c989197ef0c6ad016ffa3372a59.tar.bz2
usb-device: Fix range or printable characters
Diffstat (limited to 'src')
-rw-r--r--src/usb-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usb-device.c b/src/usb-device.c
index 0dfc289..9f003c0 100644
--- a/src/usb-device.c
+++ b/src/usb-device.c
@@ -134,7 +134,7 @@ static void usb_descriptor_info_print(usb_dev_handle * udev, struct usb_device *
buf[0] = 0;
for ( i = 0; i < ret; i+=2 ) {
sscanf(buf+i, "%2x", &x);
- if ( x > 32 && x < 128 )
+ if ( x > 31 && x < 127 )
buf2[i/2] = x;
else {
buf2[0] = 0;