Show More
@@ -57,7 +57,7 b' if pycompat.isdarwin:' | |||||
57 | ofs = cur.name_info.attr_dataoffset |
|
57 | ofs = cur.name_info.attr_dataoffset | |
58 | str_lgt = cur.name_info.attr_length |
|
58 | str_lgt = cur.name_info.attr_length | |
59 | base_ofs = ffi.offsetof(b'val_attrs_t', b'name_info') |
|
59 | base_ofs = ffi.offsetof(b'val_attrs_t', b'name_info') | |
60 |
name = |
|
60 | name = bytes( | |
61 | ffi.buffer( |
|
61 | ffi.buffer( | |
62 | ffi.cast(b"char*", cur) + base_ofs + ofs, str_lgt - 1 |
|
62 | ffi.cast(b"char*", cur) + base_ofs + ofs, str_lgt - 1 | |
63 | ) |
|
63 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now