mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Input: do not overwrite the first part of phys string
Use strlcat() to append a string to the previously created first part. Signed-off-by: Márton Németh <[email protected]> Acked-by: Jiri Kosina <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
52ce4eaa38
commit
6236dfaa90
3 changed files with 3 additions and 3 deletions
|
|
@ -266,7 +266,7 @@ static int usb_kbd_probe(struct usb_interface *iface,
|
|||
le16_to_cpu(dev->descriptor.idProduct));
|
||||
|
||||
usb_make_path(dev, kbd->phys, sizeof(kbd->phys));
|
||||
strlcpy(kbd->phys, "/input0", sizeof(kbd->phys));
|
||||
strlcat(kbd->phys, "/input0", sizeof(kbd->phys));
|
||||
|
||||
input_dev->name = kbd->name;
|
||||
input_dev->phys = kbd->phys;
|
||||
|
|
|
|||
Loading…
Reference in a new issue