]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8192u: ieee80211: Replace snprintf with scnprintf
authorRohit Sarkar <rohitsarkar5398@gmail.com>
Tue, 10 Sep 2019 18:24:15 +0000 (23:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Sep 2019 19:57:57 +0000 (21:57 +0200)
commit8c1bd793a2ff0153ad273fc4944956c055415b1e
tree4573f948d0cff1c6bc823f319ef641bca895e955
parent0f2f5440d20f4d6ad1b4fee6e1b314b0c0bd434b
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>
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c