File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ int request_dma(unsigned int chan, const char *dev_id)
198
198
if (atomic_xchg (& channel -> busy , 1 ))
199
199
return - EBUSY ;
200
200
201
- strlcpy (channel -> dev_id , dev_id , sizeof (channel -> dev_id ));
201
+ strscpy (channel -> dev_id , dev_id , sizeof (channel -> dev_id ));
202
202
203
203
if (info -> ops -> request ) {
204
204
result = info -> ops -> request (channel );
Original file line number Diff line number Diff line change @@ -304,9 +304,9 @@ void __init setup_arch(char **cmdline_p)
304
304
bss_resource .end = virt_to_phys (__bss_stop )- 1 ;
305
305
306
306
#ifdef CONFIG_CMDLINE_OVERWRITE
307
- strlcpy (command_line , CONFIG_CMDLINE , sizeof (command_line ));
307
+ strscpy (command_line , CONFIG_CMDLINE , sizeof (command_line ));
308
308
#else
309
- strlcpy (command_line , COMMAND_LINE , sizeof (command_line ));
309
+ strscpy (command_line , COMMAND_LINE , sizeof (command_line ));
310
310
#ifdef CONFIG_CMDLINE_EXTEND
311
311
strlcat (command_line , " " , sizeof (command_line ));
312
312
strlcat (command_line , CONFIG_CMDLINE , sizeof (command_line ));
You can’t perform that action at this time.
0 commit comments