]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8712: Replace snprintf with scnprintf
authorRohit Sarkar <rohitsarkar5398@gmail.com>
Tue, 10 Sep 2019 18:49:31 +0000 (00:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Sep 2019 19:57:59 +0000 (21:57 +0200)
commit24d78a4c936e5074ed7062860b17b0015e102be5
tree8b3cae2f6ceb904679a469819bcf4cd26204a8b0
parent77362bf6f4db22038ab47f77a0017ba49c7bc9f3
staging: rtl8712: 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>
Link: https://lore.kernel.org/r/20190910184931.GA8228@SARKAR
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_ioctl_linux.c