Skip to content
Commit ba256b41 authored by Harald Welte's avatar Harald Welte Committed by Len Brown
Browse files

panasonic-laptop: use snprintf with PAGE_SIZE in sysfs attributes



Instead of just sprintf() into the page-sized buffer provided
by the sysfs/device_attribute API, we use snprintf with PAGE_SIZE
as an additional safeguard.

Signed-off-by: default avatarMartin Lucina <mato@kotelna.sk>
Signed-off-by: default avatarHarald Welte <laforge@gnumonks.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent c542aade
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment