summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2019-07-14 20:27:51 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-07-15 18:40:53 +0200
commitd38b6cf50a6b911ee46683330f3af17fcceca509 (patch)
tree7b005a5b462e0efeca56b06c14c290b4a6daf186 /drivers/input
parentInput: auo-pixcir-ts - switch to using devm_add_action_or_reset() (diff)
downloadlinux-d38b6cf50a6b911ee46683330f3af17fcceca509.tar.xz
linux-d38b6cf50a6b911ee46683330f3af17fcceca509.zip
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.c2
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;