Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devtools/cocci: make strlcpy replacement smarter
The original coccinelle script worked by replacing instances of snprintf(.."%s",...) with strlcpy(), but only where the source and dest parameters were plain identifiers. Allowing expressions for those params opens up a wide range of other possible changes. Signed-off-by: Bruce Richardson <[email protected]>
- Loading branch information