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: NEduardo Valentin <eduardo.valentin@ti.com> Acked-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NZhang Rui <rui.zhang@intel.com>
Showing
想要评论请 注册 或 登录