Skip to content
Snippets Groups Projects
Commit 020e867c authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

isdn: use strlcpy() instead strcpy()


I don't think the in-kernel drivers ever hit this strcpy() so this
doesn't change how the code works.  But strlcpy() is safer.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1a81a2e0
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ int indicate_status(int card, int event, ulong Channel, char *Data) ...@@ -57,7 +57,7 @@ int indicate_status(int card, int event, ulong Channel, char *Data)
memcpy(&cmd.parm.setup, Data, sizeof(cmd.parm.setup)); memcpy(&cmd.parm.setup, Data, sizeof(cmd.parm.setup));
break; break;
default: default:
strcpy(cmd.parm.num, Data); strlcpy(cmd.parm.num, Data, sizeof(cmd.parm.num));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment