Skip to content

fix ARRAY_COPY macro

Leandro Ribeiro requested to merge leandrohrb/weston:use-array-copy-macro into main

In commit "backend-drm: simplify compile time array copy", the macro ARRAY_COPY was introduced. But with two mistakes:

  1. macro STRING was accidentally introduced in the same commit, and as it is completely unnecessary, remove it.
  2. memcpy was copying from src to dst, and it should do the opposite. So fix it.

Also, in this MR we have a commit to make use of ARRAY_COPY in other places besides the DRM-backend.

Merge request reports