From: Dan Carpenter Date: Mon, 16 Dec 2013 13:56:23 +0000 (+0300) Subject: isdn: use strlcpy() instead strcpy() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=020e867c755610fa5a2a08a69707e636cf368b55;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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)); } }