[Intel-wired-lan] [next-queue] fm10k: use snprintf() instead of sprintf() to avoid buffer overflow

Jesse Brandeburg jesse.brandeburg at intel.com
Wed Aug 26 16:44:58 UTC 2015

On Mon, 24 Aug 2015 17:01:58 -0700
Jacob Keller <jacob.e.keller at intel.com> wrote:

> Signed-off-by: Bruce Allan <bruce.w.allan at intel.com>
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> ---
>  drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c | 6 +++---
>  drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c | 8 ++++----
>  2 files changed, 7 insertions(+), 7 deletions(-)

The changes look fine, but I've seen multiple comments to the list that
there needs to be a body in the commit message.


fm10k: use snprintf()

Avoid buffer overflow and follow best practices by using snprintf()
instead of sprintf().

More information about the Intel-wired-lan mailing list