gst: Use memcpy() instead of strncpy() where appropriate
authorEdward Hervey <edward@centricular.com>
Fri, 4 May 2018 07:29:22 +0000 (09:29 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 7 May 2018 15:05:36 +0000 (17:05 +0200)
commit80dfb7bb3f415dac465f89f8945a1546c4fcc280
tree18751de60b57ea3f579a9b87e08157443499856a
parent69ddcc175f85f92f3cb870c45d27b446c767efd0
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.

https://bugzilla.gnome.org/show_bug.cgi?id=795756
gst/gstregistrybinary.c
libs/gst/helpers/gst-ptp-helper.c