summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorMárton Németh <nm127@freemail.hu>2009-11-23 17:26:38 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-11-23 17:50:52 +0100
commit6236dfaa908d9e9c84a8c4d029f443104ed2c47f (patch)
tree82874a5400d31459416b10ed26ce59354284b78d /drivers/hid
parentInput: ads7846 - switch to using dev_vdbg() (diff)
downloadlinux-6236dfaa908d9e9c84a8c4d029f443104ed2c47f.tar.xz
linux-6236dfaa908d9e9c84a8c4d029f443104ed2c47f.zip
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 <nm127@freemail.hu> Acked-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/usbhid/usbkbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/usbkbd.c b/drivers/hid/usbhid/usbkbd.c
index b342926dd7fc..f843443ba5c3 100644
--- a/drivers/hid/usbhid/usbkbd.c
+++ b/drivers/hid/usbhid/usbkbd.c
@@ -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;