systemd/coccinelle/strdupa.cocci

12 lines
162 B
Plaintext
Raw Normal View History

2023-04-12 17:00:04 +08:00
/* 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)