diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-12-16 13:56:23 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-18 22:53:59 (GMT) |
commit | 020e867c755610fa5a2a08a69707e636cf368b55 (patch) | |
tree | eea86e7c4229b88cab130dd5657b454bc7715c8b /drivers/isdn | |
parent | 1a81a2e0db5bc8fd487bc17391c65feb0d9d5f94 (diff) | |
download | linux-020e867c755610fa5a2a08a69707e636cf368b55.tar.xz |
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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/sc/event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/sc/event.c b/drivers/isdn/sc/event.c index 717003a..833d96c 100644 --- a/drivers/isdn/sc/event.c +++ b/drivers/isdn/sc/event.c @@ -57,7 +57,7 @@ int indicate_status(int card, int event, ulong Channel, char *Data) memcpy(&cmd.parm.setup, Data, sizeof(cmd.parm.setup)); break; default: - strcpy(cmd.parm.num, Data); + strlcpy(cmd.parm.num, Data, sizeof(cmd.parm.num)); } } |