diff --git a/oletools/rtfobj.py b/oletools/rtfobj.py index c596f9b..4f2259a 100644 --- a/oletools/rtfobj.py +++ b/oletools/rtfobj.py @@ -578,7 +578,7 @@ class RtfParser(object): # it should be treated as a null length: binlen=0 # ignore optional space after \bin - if self.data[self.index] == ' ': + if self.data[self.index] == ord(' '): log.debug('\\bin: ignoring whitespace before data') self.index += 1 log.debug('\\bin: reading %d bytes of binary data' % binlen)