Browse Source

Reacted on compiler warnings of Debian Sid

release-1.5.4.branch
Thomas Schmitt 11 months ago
parent
commit
6ca841e002
  1. 2
      libisofs/fs_image.c
  2. 2
      libisofs/fs_local.c

2
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;

2
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 */

Loading…
Cancel
Save