mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-14 19:24:47 +00:00

Add some Coccinelle semantic patches we can use to automatically refactor code in the future. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
9 lines
101 B
Plaintext
9 lines
101 B
Plaintext
@@
|
|
type T;
|
|
T[] E;
|
|
expression buf, srclen;
|
|
@@
|
|
|
|
- strncpy(E, src, srclen)
|
|
+ strlcpy(E, src, sizeof(E))
|