Skip to content
Snippets Groups Projects
Commit 0b66c721 authored by Andrew Haigh's avatar Andrew Haigh
Browse files

Fix Python 2 string handling in osc_types.get_string

parent e720b4f8
Branches master
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment