X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstregistrybinary.c;h=2e6451b821cf08a5e4a9b39c4ada3b296a225db8;hb=dac5966da6a0f53d0443dfa1ac239289028c415d;hp=f7cc991c1d76887689851edffc340ac15ec98c32;hpb=e1dc60524e31a5c52aff7fbb9b67e62b29c0ac66;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstregistrybinary.c b/gst/gstregistrybinary.c index f7cc991..2e6451b 100644 --- a/gst/gstregistrybinary.c +++ b/gst/gstregistrybinary.c @@ -302,7 +302,7 @@ gst_registry_binary_write_chunk (BinaryRegistryCache * cache, gchar padder[ALIGNMENT] = { 0, }; int padsize = 0; - /* Padding to insert the struct that requiere word alignment */ + /* Padding to insert the struct that require word alignment */ if ((chunk->align) && (alignment (*file_position) != 0)) { padsize = ALIGNMENT - alignment (*file_position); if (gst_registry_binary_cache_write (cache, *file_position, @@ -336,7 +336,7 @@ gst_registry_binary_initialize_magic (GstBinaryRegistryMagic * m) { memset (m, 0, sizeof (GstBinaryRegistryMagic)); - if (!strncpy (m->magic, GST_MAGIC_BINARY_REGISTRY_STR, + if (!memcpy (m->magic, GST_MAGIC_BINARY_REGISTRY_STR, GST_MAGIC_BINARY_REGISTRY_LEN) || !strncpy (m->version, GST_MAGIC_BINARY_VERSION_STR, GST_MAGIC_BINARY_VERSION_LEN)) {