]> wimlib.net Git - wimlib/blobdiff - src/security.c
Win32: Minor code/comment fixes
[wimlib] / src / security.c
index 37b9a063cfe5bec6d4793fe2586a54427f5654fc..94660de85f28301eb47589916ea7e93d01fa99ef 100644 (file)
@@ -556,6 +556,9 @@ sd_set_add_sd(struct sd_set *sd_set, const char descriptor[], size_t size)
        new->security_id = sd->num_entries;
        copy_hash(new->hash, hash);
 
+       /* There typically are only a few dozen security descriptors in a
+        * directory tree, so expanding the array of security descriptors by
+        * only 1 extra space each time should not be a problem. */
        descriptors = REALLOC(sd->descriptors,
                              (sd->num_entries + 1) * sizeof(sd->descriptors[0]));
        if (!descriptors)