diff options
author | Bitterblue Smith <rtl8821cerfe2@gmail.com> | 2022-11-10 16:59:29 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-11-16 12:30:43 +0300 |
commit | 9b00565abf3f961b10b2fdf8f762e10ef4cf3acd (patch) | |
tree | 0a9f5260e5af1dbb908ba55b76f17b5203842a6b /usr | |
parent | 486e0315c4a1f4e8ea8da0e7de92d89ee8e1ba0a (diff) | |
download | linux-9b00565abf3f961b10b2fdf8f762e10ef4cf3acd.tar.xz |
wifi: rtl8xxxu: Use strscpy instead of sprintf
Fill priv->chip_name and priv->chip_vendor with strscpy instead of
sprintf. This is just to prevent future bugs in case the name of a
chip/vendor becomes longer than the size of chip_name/chip_vendor.
Suggested-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/5fc9cc0e-eecb-8428-aeb1-f745791c0f16@gmail.com
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions