diff options
author | John-Mark Gurney <jmg@funkthat.com> | 2017-03-31 01:10:04 -0700 |
---|---|---|
committer | John-Mark Gurney <jmg@funkthat.com> | 2017-03-31 01:10:04 -0700 |
commit | ea976f8b4cf56c5024f19ac94413cfc4e4849d99 (patch) | |
tree | a3f06295c824e2debd1c964f6b26bb3dd1e49e31 /xattr | |
parent | eee2186b7ef2c3020a75ccfacde4d2b348b12bcd (diff) | |
download | xattr-ea976f8b4cf56c5024f19ac94413cfc4e4849d99.tar.gz |
add fix for issue w/ lsattr and long attrs..
Diffstat (limited to 'xattr')
-rw-r--r-- | xattr/lib_build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xattr/lib_build.py b/xattr/lib_build.py index 0c13ef3..f791881 100644 --- a/xattr/lib_build.py +++ b/xattr/lib_build.py @@ -60,7 +60,7 @@ static void convert_bsd_list(char *namebuf, size_t size) { size_t offset = 0; while(offset < size) { - int length = (int) namebuf[offset]; + int length = (int) (unsigned char)namebuf[offset]; memmove(namebuf+offset, namebuf+offset+1, length); namebuf[offset+length] = '\\0'; offset += length+1; |