From b1df1875c794da93c82199e53c61695e1ce8c303 Mon Sep 17 00:00:00 2001 From: Nathan McRae Date: Sun, 7 Jul 2024 10:28:34 -0700 Subject: [PATCH] Fix bug in tree_parse_one --- libwyag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libwyag.py b/libwyag.py index 7721d0c..37593bd 100644 --- a/libwyag.py +++ b/libwyag.py @@ -472,7 +472,7 @@ def tree_parse_one(raw, start=0): mode = raw[start:x] if len(mode) == 5: # Normalize to six bytes. - mode = b" " + mode + mode = b"0" + mode # Find the NULL terminator of the path y = raw.find(b'\x00', x)