summaryrefslogtreecommitdiffstats
path: root/cocci/memcpy.spatch
blob: f5e50e7142fdb41d828ccbb9723bd55586fccf82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@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);