Skip to content

Commit

Permalink
Merge pull request novice-rb#1 from dingus221/patch-1
Browse files Browse the repository at this point in the history
change in def qr_parse03(raw), to fix a cause of a crash
  • Loading branch information
Zulan committed Mar 26, 2015
2 parents 3bed9ed + bd91b8f commit 3d07d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SBQRC4/SBQRC4.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def qr_forw_to(self, rawdata):

@staticmethod
def qr_parse03(raw):
prepared = raw[5:].split('\x00\x00\x00\x01')[0].split('\x00')
prepared = raw[5:].split('\x00\x00\x00')[0].split('\x00')
if len(prepared) % 2 == 1:
print("WARNING: Could not correctly parse03: {}".format(prepared))
cooked = [(prepared[i], prepared[i + 1]) for i in range(0, len(prepared) - 1, 2)]
Expand Down

0 comments on commit 3d07d0d

Please sign in to comment.