> -----Original Message----- > From: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> > Sent: Thursday, November 10, 2022 9:59 PM > To: linux-wireless@xxxxxxxxxxxxxxx > Cc: Jes Sorensen <Jes.Sorensen@xxxxxxxxx>; Ping-Ke Shih <pkshih@xxxxxxxxxxx> > Subject: [PATCH v2 2/3] 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@xxxxxxxxxxx> > Signed-off-by: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> Reviewed-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> > --- > v2: > - No change. > --- > .../net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188f.c | 2 +- > .../net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c | 8 ++++---- > .../net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c | 4 ++-- > .../net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c | 2 +- > .../net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c | 2 +- > .../net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 12 ++++++------ > 6 files changed, 15 insertions(+), 15 deletions(-) > [...]