thermal: cpu_cooling: use snprintf instead of sprintf
authorEduardo Valentin <eduardo.valentin@ti.com>
Wed, 17 Apr 2013 17:12:17 +0000 (17:12 +0000)
committerZhang Rui <rui.zhang@intel.com>
Wed, 24 Apr 2013 16:34:43 +0000 (00:34 +0800)
commit99871a714b0a9429e960629fbc2c6c20c57ea484
tree2d30c5e08ce08c7b483f2ad1630d6ec574e57731
parent135266b4ea4567419c475354437b7aaa96023d9e
thermal: cpu_cooling: use snprintf instead of sprintf

Limit the amount of bytes written to dev_name by
secure writing with snprintf.

Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Acked-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/cpu_cooling.c