X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fsplit.c;h=6124a67da81c09317ca5c2ba993c05cb4f6e3067;hb=7bc9a01d5260f39f5d8c14a5478e3eada7d08ddd;hp=88f9b2bd0feb844d7294ff499cf39693e3e8f1da;hpb=d8af927e5d02cbcfc45cd1a3568b31c9814ec6f5;p=wimlib diff --git a/src/split.c b/src/split.c index 88f9b2bd..6124a67d 100644 --- a/src/split.c +++ b/src/split.c @@ -44,7 +44,7 @@ struct swm_part_info { static void copy_part_info(struct swm_part_info *dst, struct swm_part_info *src) { - list_transfer(&src->blob_list, &dst->blob_list); + list_replace(&src->blob_list, &dst->blob_list); dst->size = src->size; } @@ -69,7 +69,7 @@ write_split_wim(WIMStruct *orig_wim, const tchar *swm_name, union wimlib_progress_info progress; unsigned part_number; int ret; - u8 guid[WIMLIB_GUID_LEN]; + u8 guid[GUID_SIZE]; swm_name_len = tstrlen(swm_name); swm_name_buf = alloca((swm_name_len + 20) * sizeof(tchar)); @@ -91,7 +91,7 @@ write_split_wim(WIMStruct *orig_wim, const tchar *swm_name, progress.split.total_bytes += swm_info->parts[part_number - 1].size; progress.split.total_parts = swm_info->num_parts; - randomize_byte_array(guid, WIMLIB_GUID_LEN); + generate_guid(guid); for (part_number = 1; part_number <= swm_info->num_parts; part_number++) { int part_write_flags;