diff options
| author | 2009-11-23 08:26:38 -0800 | |
|---|---|---|
| committer | 2009-11-23 08:50:52 -0800 | |
| commit | 6236dfaa908d9e9c84a8c4d029f443104ed2c47f (patch) | |
| tree | 82874a5400d31459416b10ed26ce59354284b78d /drivers/input/misc/powermate.c | |
| parent | Input: ads7846 - switch to using dev_vdbg() (diff) | |
| download | linux-dev-6236dfaa908d9e9c84a8c4d029f443104ed2c47f.tar.xz linux-dev-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/input/misc/powermate.c')
| -rw-r--r-- | drivers/input/misc/powermate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/powermate.c b/drivers/input/misc/powermate.c index a53c4885fbad..668913d12044 100644 --- a/drivers/input/misc/powermate.c +++ b/drivers/input/misc/powermate.c @@ -338,7 +338,7 @@ static int powermate_probe(struct usb_interface *intf, const struct usb_device_i pm->input = input_dev; usb_make_path(udev, pm->phys, sizeof(pm->phys)); - strlcpy(pm->phys, "/input0", sizeof(pm->phys)); + strlcat(pm->phys, "/input0", sizeof(pm->phys)); spin_lock_init(&pm->lock); |
