summaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-12-16 14:56:23 +0100
committerDavid S. Miller <davem@davemloft.net>2013-12-18 23:53:59 +0100
commit020e867c755610fa5a2a08a69707e636cf368b55 (patch)
treeeea86e7c4229b88cab130dd5657b454bc7715c8b /drivers/isdn
parentbridge: spelling fixes (diff)
downloadlinux-020e867c755610fa5a2a08a69707e636cf368b55.tar.xz
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')
-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));
}
}