summaryrefslogtreecommitdiffstats
path: root/devtools/cocci/strlcpy.cocci
blob: 335e271282437ae045052dd09bb65d4b7f8bfb6f (plain)
1
2
3
4
5
6
7
8
@use_strlcpy@
identifier src, dst;
expression size;
@@
(
- snprintf(dst, size, "%s", src)
+ strlcpy(dst, src, size)
)