1
0
Fork 0
mirror of https://github.com/linux-usb-gadgets/libusbgx.git synced 2025-07-26 18:15:08 +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:
Krzysztof Opasiak 2014-03-18 20:45:33 +01:00
parent 63f3bf5c57
commit 1392c6b541

View file

@ -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;