Skip to content

Commit

Permalink
fix: fix refactoring error
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Oct 1, 2022
1 parent 99ddcec commit f26bd00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbus_fast/_private/unmarshaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ def read_string_cast(self, type_=None) -> str:
str_start = self.pos
# read terminating '\0' byte as well (str_length + 1)
start_pos = self.pos - UINT32_SIZE
end_pos = self.pos - 1
self.pos += self.view[start_pos : self.pos].cast(UINT32_CAST)[0] + 1
end_pos = self.pos - 1
return self.buf[str_start:end_pos].decode()

def read_string_unpack(self, type_=None) -> str:
Expand Down

0 comments on commit f26bd00

Please sign in to comment.