VHD build fixes. Patch from shermanp.

This commit is contained in:
SarahW 2020-11-15 08:58:59 +00:00
commit 322b25a4dc
3 changed files with 9 additions and 7 deletions

View file

@ -98,7 +98,7 @@ static int mvhd_gen_par_loc(MVHDSparseHeader* header,
char child_dir[MVHD_MAX_PATH_BYTES] = {0};
size_t child_dir_len;
if (strlen(child_path) < sizeof child_dir) {
strcpy_s(child_dir, MVHD_MAX_PATH_BYTES, child_path);
strcpy(child_dir, child_path);
} else {
*err = MVHD_ERR_PATH_LEN;
rv = -1;