git.droids-corp.org
/
dpdk.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
net/mlx5: add C++ include guard to public header
[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
)