Skip to content

Commit

Permalink
Use strlcpy() again for older platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
bb-qq committed Jul 15, 2023
1 parent a3ffb37 commit 51c37ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions r8152.c
Original file line number Diff line number Diff line change
Expand Up @@ -18639,8 +18639,9 @@ static void rtl8152_get_drvinfo(struct net_device *netdev,
{
struct r8152 *tp = netdev_priv(netdev);

strscpy(info->driver, MODULENAME, sizeof(info->driver));
strscpy(info->version, DRIVER_VERSION, sizeof(info->version));
strlcpy(info->driver, MODULENAME, sizeof(info->driver));
strlcpy(info->version, DRIVER_VERSION, sizeof(info->version));

usb_make_path(tp->udev, info->bus_info, sizeof(info->bus_info));
}

Expand Down

0 comments on commit 51c37ee

Please sign in to comment.