summaryrefslogtreecommitdiffstats
path: root/coccinelle/mempcpy.cocci
blob: efb657ae79076827ac4c55c4d65a4fc3b31bc0b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
expression x, y, z;
@@
- memcpy(x, y, z);
- x += z;
+ x = mempcpy(x, y, z);
@@
expression x, y, z;
@@
- memcpy_safe(x, y, z);
- x += z;
+ x = mempcpy_safe(x, y, z);