summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/sc
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-12-16 16:56:23 +0300
committerDavid S. Miller <davem@davemloft.net>2013-12-18 17:53:59 -0500
commit020e867c755610fa5a2a08a69707e636cf368b55 (patch)
treeeea86e7c4229b88cab130dd5657b454bc7715c8b /drivers/isdn/sc
parent1a81a2e0db5bc8fd487bc17391c65feb0d9d5f94 (diff)
downloadblackbird-op-linux-020e867c755610fa5a2a08a69707e636cf368b55.tar.gz
blackbird-op-linux-020e867c755610fa5a2a08a69707e636cf368b55.zip
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/sc')
-rw-r--r--drivers/isdn/sc/event.c2
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)
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));
}
}
OpenPOWER on IntegriCloud