From 6ca841e002251770cc12a001df34c3af4939d119 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 13 Jun 2020 09:56:31 +0200 Subject: [PATCH] Reacted on compiler warnings of Debian Sid --- libisofs/fs_image.c | 2 +- libisofs/fs_local.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libisofs/fs_image.c b/libisofs/fs_image.c index c4fbc53..7522be6 100644 --- a/libisofs/fs_image.c +++ b/libisofs/fs_image.c @@ -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; diff --git a/libisofs/fs_local.c b/libisofs/fs_local.c index 721c133..68462d4 100644 --- a/libisofs/fs_local.c +++ b/libisofs/fs_local.c @@ -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 */