Reacted on compiler warnings of Debian Sid

This commit is contained in:
Thomas Schmitt 2020-06-13 09:56:31 +02:00
parent c84f6ae689
commit 6ca841e002
2 changed files with 2 additions and 2 deletions

View File

@ -2913,7 +2913,7 @@ int iso_image_filesystem_new(IsoDataSource *src, struct iso_read_opts *opts,
goto fs_cleanup;
}
strncpy(ifs->type, "iso ", 4);
memcpy(ifs->type, "iso ", 4);
ifs->data = data;
ifs->refcount = 1;
ifs->version = 0;

View File

@ -815,7 +815,7 @@ int iso_local_filesystem_new(IsoFilesystem **fs)
}
/* fill struct */
strncpy(lfs->type, "file", 4);
memcpy(lfs->type, "file", 4);
lfs->refcount = 1;
lfs->version = 0;
lfs->data = NULL; /* we don't need private data */