diff options
author | Rohit Sarkar <rohitsarkar5398@gmail.com> | 2019-09-11 19:21:13 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-12 10:38:45 +0100 |
commit | 63350bdb384543e2fcfd007b9da8239f03c56860 (patch) | |
tree | b63dba4c4ca94eae32e517195aebed65cd99f9a3 /drivers/net/ethernet/intel/igc/igc_phy.c | |
parent | 9a4c56be67f8153d8f8459c4c7bbbbc360d5fe9e (diff) |
staging: vhciq_core: replace snprintf with scnprintf
When the number of bytes to be printed exceeds the limit snprintf
returns the number of bytes that would have been printed (if there was
no truncation). This might cause issues, hence use scnprintf which
returns the actual number of bytes printed to buffer always
Signed-off-by: Rohit Sarkar <rohitsarkar5398@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20190911135112.GA5569@SARKAR
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_phy.c')
0 files changed, 0 insertions, 0 deletions