diff options
author | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 09:46:04 +0400 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 09:46:04 +0400 |
commit | a21466cc77b25dc2afd1292c79c7fc8fd454a1a7 (patch) | |
tree | 0b081efdfde7962acfca18d8f17170ae7cbf35d9 /drivers/input/touchscreen/h3600_ts_input.c | |
parent | 10ca4c0a622a942e55dc8a6d57ebd441089c9e38 (diff) | |
download | linux-a21466cc77b25dc2afd1292c79c7fc8fd454a1a7.tar.xz |
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/h3600_ts_input.c')
-rw-r--r-- | drivers/input/touchscreen/h3600_ts_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/h3600_ts_input.c b/drivers/input/touchscreen/h3600_ts_input.c index a595d386312f..2de2139f2fed 100644 --- a/drivers/input/touchscreen/h3600_ts_input.c +++ b/drivers/input/touchscreen/h3600_ts_input.c @@ -363,7 +363,7 @@ static int h3600ts_connect(struct serio *serio, struct serio_driver *drv) ts->serio = serio; ts->dev = input_dev; - sprintf(ts->phys, "%s/input0", serio->phys); + snprintf(ts->phys, sizeof(ts->phys), "%s/input0", serio->phys); input_dev->name = "H3600 TouchScreen"; input_dev->phys = ts->phys; |