Tag: 5c2edefed74fb29b35634bce1b4c38ce1fdb2ce6

[media] pwc: Replace memcpy with struct assignment

Author: Ezequiel Garcia <elezegarcia@gmail.com> This kind of memcpy() is error-prone. Its replacement with a struct assignment is prefered because it’s type-safe and much easier to read. Found by coccinelle. Hand patched and reviewed. Tested by compilation only. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier …

Continue reading