commit | 42e78943724fd3df005becb0594bdc3d4a893761 | [log] [tgz] |
---|---|---|
author | Tang Yuantian <Yuantian.Tang@freescale.com> | Wed May 06 11:21:33 2015 +0800 |
committer | Tom Rini <trini@konsulko.com> | Thu May 28 08:18:24 2015 -0400 |
tree | 34988737d61abd7d8349141eee440e8323e24cd0 | |
parent | 359919ac81fd592bd562d1ce4ee34f10ecfb1af4 [diff] |
fsl/sata: Replace sprintf() with snprintf() Function 'sprintf' does not check buffer boundaries but outputs to the buffer of fixed size which could potentially cause buffer overflow. Use a safer function to replace it. Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>