1
0
Fork 0
frr/tools/coccinelle/replace-strncpy.cocci
Daniel Baumann 3124f89aed
Adding upstream version 10.1.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-05 10:03:58 +01:00

8 lines
101 B
Text

@@
type T;
T[] E;
expression buf, srclen;
@@
- strncpy(E, src, srclen)
+ strlcpy(E, src, sizeof(E))