]> wimlib.net Git - wimlib/blobdiff - src/security.c
Rename is_win32_name => d_is_win32_name
[wimlib] / src / security.c
index b49ba69cd459f5f2640173eb49a3339a8b74ca9a..f160d683f6cbf4755bc92f8ef28b96fa9f8dfcb4 100644 (file)
@@ -157,8 +157,8 @@ read_wim_security_data(const u8 *buf, size_t buf_len,
                p += sd->sizes[i];
        }
 out_align_total_length:
-       total_len = (total_len + 7) & ~7;
-       sd->total_length = (sd->total_length + 7) & ~7;
+       total_len = ALIGN(total_len, 8);
+       sd->total_length = ALIGN(sd->total_length, 8);
        if (total_len != sd->total_length) {
                WARNING("Expected WIM security data total length of "
                        "%u bytes, but calculated %u bytes",