mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
96ca229517
Inspired by #22520, let's add a coccinelle script that converts this automatically.
14 lines
217 B
Plaintext
14 lines
217 B
Plaintext
/* 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);
|