commit | e88a1b9e3d39376d2a33efff49229985fe8797e8 | [log] [tgz] |
---|---|---|
author | Mike Lockwood <lockwood@android.com> | Wed Dec 15 12:59:08 2010 -0800 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Dec 15 12:59:08 2010 -0800 |
tree | 299102e8e0bac41dfc6d0cefd67c9d0e2cc516e0 | |
parent | 333f24bfbd9eea1347f20c2e88c5c1565b84aafe [diff] | |
parent | 93aff72d9b469f4b77468bab654cd65243b662e6 [diff] |
Merge "libusbhost: Fix breakage due to not storing dev_name in struct usb_device"
diff --git a/libusbhost/usbhost.c b/libusbhost/usbhost.c index 6bdeebf..dba0b48 100644 --- a/libusbhost/usbhost.c +++ b/libusbhost/usbhost.c
@@ -259,6 +259,7 @@ if (length < 0) goto failed; + strncpy(device->dev_name, dev_name, sizeof(device->dev_name) - 1); device->fd = fd; device->desc_length = length; // assume we are writeable, since usb_device_get_fd will only return writeable fds