Skip to content

Commit ed443cd

Browse files
aneftinanguy11
authored andcommitted
igc: Prefer strscpy over strlcpy
Use the strscpy method instead of strlcpy method. See: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr [email protected]/ Signed-off-by: Sasha Neftin <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 94f794d commit ed443cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/igc/igc_ethtool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static void igc_ethtool_get_drvinfo(struct net_device *netdev,
150150
strscpy(drvinfo->fw_version, adapter->fw_version,
151151
sizeof(drvinfo->fw_version));
152152

153-
strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
153+
strscpy(drvinfo->bus_info, pci_name(adapter->pdev),
154154
sizeof(drvinfo->bus_info));
155155

156156
drvinfo->n_priv_flags = IGC_PRIV_FLAGS_STR_LEN;

0 commit comments

Comments
 (0)