]> wimlib.net Git - wimlib/blobdiff - src/unix_apply.c
Improve helper functions for setting blob locations
[wimlib] / src / unix_apply.c
index a0b62519c02a974b46a7df8a80f341703c24621b..e6bd2321276baeae20b1f177c21b211a24cd45df 100644 (file)
@@ -503,9 +503,8 @@ unix_create_symlink(const struct wim_inode *inode, const char *path,
        int ret;
        struct blob_descriptor blob_override;
 
-       blob_override.blob_location = BLOB_IN_ATTACHED_BUFFER;
-       blob_override.attached_buffer = (void *)rpdata;
-       blob_override.size = rpdatalen;
+       blob_set_is_located_in_attached_buffer(&blob_override,
+                                              (void *)rpdata, rpdatalen);
 
        ret = wim_inode_readlink(inode, link_target,
                                 sizeof(link_target) - 1, &blob_override);