A couple more void * arithmetic issues

(Logical change 1.28)
edge.strict_endians
flatcap.org!flatcap 2002-12-02 01:57:17 +00:00
parent cb5b25e58b
commit fe0c482994
1 changed files with 2 additions and 2 deletions

View File

@ -654,7 +654,7 @@ res_err_out:
}
total2 = pos + count - na->initialized_size;
count -= total2;
memset(b + count, 0, total2);
memset((u8*)b + count, 0, total2);
}
/* Find the run list element containing the vcn. */
rl = ntfs_attr_find_vcn(na, pos >> vol->cluster_size_bits);
@ -1079,7 +1079,7 @@ s64 ntfs_attr_mst_pread(ntfs_attr *na, const s64 pos, const s64 bk_cnt,
if (br <= 0)
return br;
br /= bk_size;
for (end = (u8*)b + br * bk_size; b < end; (u8*)b += bk_size)
for (end = (u8*)b + br * bk_size; (u8*)b < end; (u8*)b += bk_size)
ntfs_post_read_mst_fixup((NTFS_RECORD*)b, bk_size);
/* Finally, return the number of blocks read. */
return br;