X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fxml.c;h=0ea13f83b044037458c09cc577e08e253e10c1fa;hp=6515ee989f2c89e51c7eb42090fb9174ee4554eb;hb=16176f3b7ce78da85646e814bd2f3ffe5babb82b;hpb=14baa6ae892debbaa18dba8119931580efd0e517 diff --git a/src/xml.c b/src/xml.c index 6515ee98..0ea13f83 100644 --- a/src/xml.c +++ b/src/xml.c @@ -1074,7 +1074,7 @@ calculate_dentry_statistics(struct wim_dentry *dentry, void *arg) if (inode->i_nlink >= 2 && dentry_is_first_in_inode(dentry)) { for (unsigned i = 0; i < inode->i_num_ads; i++) { - if (inode->i_ads_entries[i].stream_name_len) { + if (inode->i_ads_entries[i].stream_name_nbytes) { lte = inode_stream_lte(inode, i + 1, lookup_table); if (lte) { info->hard_link_bytes += inode->i_nlink * @@ -1266,8 +1266,8 @@ read_xml_data(FILE *fp, const struct resource_entry *res_entry, DEBUG("Parsing XML using libxml2 to create XML tree"); - doc = xmlReadMemory(xml_data, res_entry->size, - "noname.xml", "UTF-16", 0); + doc = xmlReadMemory((const char *)xml_data, + res_entry->size, "noname.xml", "UTF-16", 0); if (!doc) { ERROR("Failed to parse XML data");