Re: [PATCH 6/7] use COPY_ARRAY

2016-09-25 Thread René Scharfe
Ha, can't count. It should be [PATCH 2/2] of course. René

[PATCH 6/7] use COPY_ARRAY

2016-09-25 Thread René Scharfe
Add a semantic patch for converting certain calls of memcpy(3) to COPY_ARRAY() and apply that transformation to the code base. The result is shorter and safer code. For now only consider calls where source and destination have the same type, or in other words: easy cases. Signed-off-by: Rene