* checked to be the same as wim->hdr.total_parts. Otherwise, it
* could be unexpectedly high and cause a stack overflow. */
WIMStruct *parts_to_swms[num_additional_swms];
- ZERO_ARRAY(parts_to_swms);
+ memset(parts_to_swms, 0, sizeof(parts_to_swms));
for (unsigned i = 0; i < num_additional_swms; i++) {
WIMStruct *swm = additional_swms[i];
"chunk size");
return WIMLIB_ERR_SPLIT_INVALID;
}
- if (memcmp(guid, swm->hdr.guid, WIM_GUID_LEN) != 0) {
+ if (!guids_equal(guid, swm->hdr.guid)) {
ERROR("The split WIMs do not all have the same "
"GUID");
return WIMLIB_ERR_SPLIT_INVALID;