diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-12-16 08:56:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-18 17:53:59 -0500 |
commit | 020e867c755610fa5a2a08a69707e636cf368b55 (patch) | |
tree | eea86e7c4229b88cab130dd5657b454bc7715c8b /drivers/isdn | |
parent | 1a81a2e0db5bc8fd487bc17391c65feb0d9d5f94 (diff) |
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 717003a3bdf4..833d96c2cf92 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) | |||
57 | memcpy(&cmd.parm.setup, Data, sizeof(cmd.parm.setup)); | 57 | memcpy(&cmd.parm.setup, Data, sizeof(cmd.parm.setup)); |
58 | break; | 58 | break; |
59 | default: | 59 | default: |
60 | strcpy(cmd.parm.num, Data); | 60 | strlcpy(cmd.parm.num, Data, sizeof(cmd.parm.num)); |
61 | } | 61 | } |
62 | } | 62 | } |
63 | 63 | ||