repo.or.cz
/
systemd_ALT.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
1:255.13-alt1
[systemd_ALT.git]
/
coccinelle
/
mempcpy.cocci
blob
efb657ae79076827ac4c55c4d65a4fc3b31bc0b0
1
/* SPDX-License-Identifier: LGPL-2.1-or-later */
2
@@
3
expression x, y, z;
4
@@
5
- memcpy(x, y, z);
6
- x += z;
7
+ x = mempcpy(x, y, z);
8
@@
9
expression x, y, z;
10
@@
11
- memcpy_safe(x, y, z);
12
- x += z;
13
+ x = mempcpy_safe(x, y, z);