Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 4cb2643

Browse files
Wolfram Sanghdeller
authored andcommitted
parisc: led: Move from strlcpy with unused retval to strscpy
Follow the advice of the below link and prefer 'strscpy' in this subsystem. Conversion is 1:1 because the return value is not used. Generated by a coccinelle script. Link: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/ Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent db4538a commit 4cb2643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/parisc/led.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ int lcd_print( const char *str )
646646
cancel_delayed_work_sync(&led_task);
647647

648648
/* copy display string to buffer for procfs */
649-
strlcpy(lcd_text, str, sizeof(lcd_text));
649+
strscpy(lcd_text, str, sizeof(lcd_text));
650650

651651
/* Set LCD Cursor to 1st character */
652652
gsc_writeb(lcd_info.reset_cmd1, LCD_CMD_REG);

0 commit comments

Comments
 (0)