]> wimlib.net Git - wimlib/blobdiff - src/reparse.c
reparse.c: Include <stdlib.h> for alloca
[wimlib] / src / reparse.c
index 4cbe69d9fbda8b7ce7ab43571240b4f2a1a94548..c00c7c1c16906a6d95acc71ff9c989cc9f13e9ba 100644 (file)
 #include "lookup_table.h"
 #include "sha1.h"
 #include <errno.h>
+#include <stdlib.h>
+#ifdef HAVE_ALLOCA_H
+#  include <alloca.h>
+#endif
 
 static const utf16lechar volume_junction_prefix[11] = {
        cpu_to_le16('\\'),
@@ -225,7 +229,7 @@ wim_inode_get_reparse_data(const struct wim_inode *inode, u8 *rpbuf)
        }
 
        /* Read the data from the WIM file */
-       ret = read_full_resource_into_buf(lte, rpbuf + 8, true);
+       ret = read_full_resource_into_buf(lte, rpbuf + 8);
        if (ret)
                return ret;
 
@@ -315,10 +319,6 @@ out_have_link:
        return ret;
 }
 
-#ifdef HAVE_ALLOCA_H
-#  include <alloca.h>
-#endif
-
 int
 wim_inode_set_symlink(struct wim_inode *inode,
                      const char *target,