File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ static void uml_net_poll_controller(struct net_device *dev)
265
265
static void uml_net_get_drvinfo (struct net_device * dev ,
266
266
struct ethtool_drvinfo * info )
267
267
{
268
- strlcpy (info -> driver , DRIVER_NAME , sizeof (info -> driver ));
268
+ strscpy (info -> driver , DRIVER_NAME , sizeof (info -> driver ));
269
269
}
270
270
271
271
static const struct ethtool_ops uml_net_ethtool_ops = {
Original file line number Diff line number Diff line change @@ -1372,7 +1372,7 @@ static void vector_net_poll_controller(struct net_device *dev)
1372
1372
static void vector_net_get_drvinfo (struct net_device * dev ,
1373
1373
struct ethtool_drvinfo * info )
1374
1374
{
1375
- strlcpy (info -> driver , DRIVER_NAME , sizeof (info -> driver ));
1375
+ strscpy (info -> driver , DRIVER_NAME , sizeof (info -> driver ));
1376
1376
}
1377
1377
1378
1378
static int vector_net_load_bpf_flash (struct net_device * dev ,
Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ void __init setup_arch(char **cmdline_p)
416
416
read_initrd ();
417
417
418
418
paging_init ();
419
- strlcpy (boot_command_line , command_line , COMMAND_LINE_SIZE );
419
+ strscpy (boot_command_line , command_line , COMMAND_LINE_SIZE );
420
420
* cmdline_p = command_line ;
421
421
setup_hostinfo (host_info , sizeof host_info );
422
422
You can’t perform that action at this time.
0 commit comments