aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorDaniel Kurtz <[email protected]>2011-10-06 15:43:20 -0700
committerDmitry Torokhov <[email protected]>2011-10-06 19:41:52 -0700
commit626af8611211c55595cd316103abd2419cd4d861 (patch)
tree51e0230b67bd204f66288329c572a3fdd2b772bb /tools/perf/util/scripting-engines/trace-event-python.c
parent04c59abd3c053f9a42437d5db3af4383cf68659c (diff)
Input: atmel_mxt_ts - use snprintf for sysfs attribute show method
Sysfs attribute show methods are always passed a buffer of length PAGE_SIZE. To keep from overwriting this buffer and causing havoc, use snprintf() to guarantee we never write more than the buffer can hold. In addition, at least for my touchscreen, the number and size of objects was far too big to fit in a single 4K page. Therefore, this patch also trims some redundant framing text to leave more room for actual data. Signed-off-by: Daniel Kurtz <[email protected]> Acked-by: Nick Dyer <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions