mirror of
https://github.com/linux-usb-gadgets/libusbgx.git
synced 2025-07-26 19:15:05 +03:00
libusbgx: Fix wrong target size.
Variable target is a place for path to USB function so it should have size USBG_MAX_PATH_LENGTH not USBG_MAX_STR_LENGTH size. Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> [Port from libusbg and update description] Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
This commit is contained in:
parent
63f3bf5c57
commit
1392c6b541
1 changed files with 1 additions and 1 deletions
|
@ -605,7 +605,7 @@ static int usbg_parse_config_bindings(usbg_config *c)
|
|||
struct dirent **dent;
|
||||
char bpath[USBG_MAX_PATH_LENGTH];
|
||||
char file_name[USBG_MAX_PATH_LENGTH];
|
||||
char target[USBG_MAX_STR_LENGTH];
|
||||
char target[USBG_MAX_PATH_LENGTH];
|
||||
char *target_name;
|
||||
usbg_gadget *g = c->parent;
|
||||
usbg_binding *b;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue