Skip to content

Commit b48715d

Browse files
committed
isdn: isdn_tty: fix build warning of strncpy
Not upstream as isdn is long deleted. Fix up a strncpy build warning for isdn_tty_suspend() using strscpy. It's not like anyone uses this code anyway, and this gets rid of a build warnings so that we can see real warnings as they pop up over time. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent eeb234f commit b48715d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/isdn/i4l/isdn_tty.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ isdn_tty_suspend(char *id, modem_info *info, atemu *m)
786786
cmd.parm.cmsg.para[3] = 4; /* 16 bit 0x0004 Suspend */
787787
cmd.parm.cmsg.para[4] = 0;
788788
cmd.parm.cmsg.para[5] = l;
789-
strncpy(&cmd.parm.cmsg.para[6], id, l);
789+
strscpy(&cmd.parm.cmsg.para[6], id, l);
790790
cmd.command = CAPI_PUT_MESSAGE;
791791
cmd.driver = info->isdn_driver;
792792
cmd.arg = info->isdn_channel;

0 commit comments

Comments
 (0)