commit | fbf6e28747fa9ed10953010a75fc5a28dbe1b6c1 | [log] [tgz] |
---|---|---|
author | Edward Hervey <edward@centricular.com> | Fri May 04 09:29:22 2018 +0200 |
committer | Tim-Philipp Müller <tim@centricular.com> | Tue May 08 16:42:37 2018 +0100 |
tree | cc6cb278ee1b2fa1a768e6cd8cd37249e5f90337 | |
parent | f887db4ab1d7bae188cd447531cbbb068ec28da6 [diff] |
gst: Use memcpy() instead of strncpy() where appropriate strncpy() is assumed to be for strings so the compiler assumes that it will need an extra byte for the string-terminaning NULL. For cases where we know it's actually "binary" data, just copy it with memcpy. Fixes compiler warnings with gcc 8. https://bugzilla.gnome.org/show_bug.cgi?id=795756