summaryrefslogtreecommitdiffstats
path: root/coccinelle/strdupa.cocci
blob: 665736e5c8f35c3e903fd1607c40c4d2c8575bef (plain)
1
2
3
4
5
6
7
8
9
10
11
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
expression x;
@@
- strdupa(x)
+ strdupa_safe(x)
@@
expression x, n;
@@
- strndupa(x, n)
+ strndupa_safe(x, n)