mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
1a81a2e0db
commit
020e867c75
@ -57,7 +57,7 @@ int indicate_status(int card, int event, ulong Channel, char *Data)
|
|||||||
memcpy(&cmd.parm.setup, Data, sizeof(cmd.parm.setup));
|
memcpy(&cmd.parm.setup, Data, sizeof(cmd.parm.setup));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
strcpy(cmd.parm.num, Data);
|
strlcpy(cmd.parm.num, Data, sizeof(cmd.parm.num));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user