diff options
author | Joe Perches | 2019-07-14 11:27:51 -0700 |
---|---|---|
committer | Dmitry Torokhov | 2019-07-15 09:40:53 -0700 |
commit | d38b6cf50a6b911ee46683330f3af17fcceca509 (patch) | |
tree | 7b005a5b462e0efeca56b06c14c290b4a6daf186 /drivers/input | |
parent | e2c063c8970044033dac9cedc686db27008e4bb1 (diff) |
Input: synaptics - fix misuse of strlcpy
Probable cut&paste typo - use the correct field size.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/mouse/synaptics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index 774cddc3f066..12313424e97d 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c @@ -706,7 +706,7 @@ static void synaptics_pt_create(struct psmouse *psmouse) serio->id.type = SERIO_PS_PSTHRU; strlcpy(serio->name, "Synaptics pass-through", sizeof(serio->name)); - strlcpy(serio->phys, "synaptics-pt/serio0", sizeof(serio->name)); + strlcpy(serio->phys, "synaptics-pt/serio0", sizeof(serio->phys)); serio->write = synaptics_pt_write; serio->start = synaptics_pt_start; serio->stop = synaptics_pt_stop; |