about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2016-02-02 21:40:20 +0100
committerAjax <commial@gmail.com>2016-02-04 23:20:21 +0100
commit5fd0725ded22e5f777c90b60e8a56c68c9475039 (patch)
treece2d7cfdb9d39154ca1f7b8388b082c0bdcfe48a
parent38fb7d07fc90e17a95c96b80fe9e0825a09ea498 (diff)
downloadmiasm-5fd0725ded22e5f777c90b60e8a56c68c9475039.tar.gz
miasm-5fd0725ded22e5f777c90b60e8a56c68c9475039.zip
BinStreamIDA: fix readbs
-rw-r--r--miasm2/core/bin_stream_ida.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/core/bin_stream_ida.py b/miasm2/core/bin_stream_ida.py
index ee3dcec3..de7bc971 100644
--- a/miasm2/core/bin_stream_ida.py
+++ b/miasm2/core/bin_stream_ida.py
@@ -20,9 +20,9 @@ class bin_stream_ida(bin_stream_str):
     def readbs(self, l=1):
         if self.offset + l > self.l:
             raise IOError("not enough bytes")
-        o = self.getbytes(self.offset)
+        content = self.getbytes(self.offset)
         self.offset += l
-        return p
+        return content
 
     def __str__(self):
         raise NotImplementedError('Not fully functional')