Fix off-by-one error with xattr parsing.

The xattrs are stored as a long string with '\0' delimited names.
Be sure to remove the '\0' before converting each value to base64.
This commit is contained in:
4n6Tools committed 2017-01-11 10:19:08 -05:00
1 parent ecfbf3def0
commit 0db2db8323
1 file changed
+1 -1
+1 -1
View File
@@ -115,7 +115,7 @@ int process_xattrs(const void *pathmd5, const char *filepath, FILE *out)
if (valuesize < 0)
log_error("lgetxattr");
else
io_entry_write_xattr_fields(pathmd5,next,valuebuffer,valuesize,out);
io_entry_write_xattr_fields(pathmd5,next,valuebuffer,valuesize-1,out);
}
fflush(out);