regex/mlx5: introduce driver for BlueField 2
[dpdk.git] / devtools / cocci / strlcpy-with-header.cocci
1 @include@
2 @@
3
4 #include <rte_string_fns.h>
5
6 @use_strlcpy depends on include@
7 expression src, dst, size;
8 @@
9 (
10 - snprintf(dst, size, "%s", src)
11 + strlcpy(dst, src, size)
12 )