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,
{
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)) {