bind9/cocci/memcpy.spatch
2019-07-12 15:27:06 +02:00

14 lines
152 B
Text

@has_string_h@
@@
#include <string.h>
@depends on has_string_h@
expression D;
expression S;
expression N;
@@
- memcpy(D, S, N);
+ memmove(D, S, N);