Skip to content

Commit b5ece7a

Browse files
authored
Try to fix #279 by re-applying parts of #281
1 parent f2f6798 commit b5ece7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runtime.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ main (int argc, char *argv[])
289289
fclose(f);
290290
chmod (prefixed_path_to_extract, st.st_mode);
291291
} else if(inode.base.inode_type == SQUASHFS_SYMLINK_TYPE){
292-
size_t size = strlen(trv.path)+1;
292+
size_t size;
293+
sqfs_readlink(&fs, &inode, NULL, &size);
293294
char buf[size];
294295
int ret = sqfs_readlink(&fs, &inode, buf, &size);
295296
if (ret != 0)

0 commit comments

Comments
 (0)