diff --git a/pythonosc/parsing/osc_types.py b/pythonosc/parsing/osc_types.py index e15eb2365ee4064ba4699721892227966852bb13..09f5a04df9c225750cb458e76a2effdeeeb268da 100644 --- a/pythonosc/parsing/osc_types.py +++ b/pythonosc/parsing/osc_types.py @@ -61,7 +61,7 @@ def get_string(dgram, start_index): """ offset = 0 try: - while dgram[start_index + offset] != 0: + while dgram[start_index + offset] != '\x00': offset += 1 if offset == 0: raise ParseError(