diff options
author | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 07:46:04 +0200 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 07:46:04 +0200 |
commit | a21466cc77b25dc2afd1292c79c7fc8fd454a1a7 (patch) | |
tree | 0b081efdfde7962acfca18d8f17170ae7cbf35d9 /drivers/input/touchscreen/gunze.c | |
parent | Input: fix potential overflows in driver/input/joystick (diff) | |
download | linux-a21466cc77b25dc2afd1292c79c7fc8fd454a1a7.tar.xz linux-a21466cc77b25dc2afd1292c79c7fc8fd454a1a7.zip |
Input: fix potential overflows in driver/input/touchscreen
Change all sprintfs into snprintfs to make sure we won't stomp on
data adjacent to our buffers.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/touchscreen/gunze.c')
-rw-r--r-- | drivers/input/touchscreen/gunze.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/gunze.c b/drivers/input/touchscreen/gunze.c index 466da190ceec..b769b21973b7 100644 --- a/drivers/input/touchscreen/gunze.c +++ b/drivers/input/touchscreen/gunze.c @@ -129,7 +129,7 @@ static int gunze_connect(struct serio *serio, struct serio_driver *drv) gunze->serio = serio; gunze->dev = input_dev; - sprintf(gunze->phys, "%s/input0", serio->phys); + snprintf(gunze->phys, sizeof(serio->phys), "%s/input0", serio->phys); input_dev->private = gunze; input_dev->name = "Gunze AHL-51S TouchScreen"; |