aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192u/r8192U_core.c
diff options
context:
space:
mode:
authorRohit Sarkar <rohitsarkar5398@gmail.com>2019-09-10 23:54:15 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-30 21:57:57 +0200
commit88b3673ec0d6403c25d52e0a46797485e9d01150 (patch)
tree4573f948d0cff1c6bc823f319ef641bca895e955 /drivers/staging/rtl8192u/r8192U_core.c
parentstaging: board: use appropriate macro to initialize struct (diff)
downloadlinux-dev-88b3673ec0d6403c25d52e0a46797485e9d01150.tar.xz
linux-dev-88b3673ec0d6403c25d52e0a46797485e9d01150.zip
staging: rtl8192u: ieee80211: 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/20190910182415.GA5768@SARKAR Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192u/r8192U_core.c')
0 files changed, 0 insertions, 0 deletions