1
0
Fork 0
frr/tools/coccinelle/replace-strncpy.cocci

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
101 B
Text
Raw Permalink Normal View History

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