Browse Source

Reacted on compiler warnings of Debian Sid

release-1.5.4.branch
Thomas Schmitt 8 months ago
parent
commit
6ca841e002
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libisofs/fs_image.c
  2. +1
    -1
      libisofs/fs_local.c

+ 1
- 1
libisofs/fs_image.c 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;


+ 1
- 1
libisofs/fs_local.c 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 */


Loading…
Cancel
Save