diff options
| author | Brian Potchik <brian@vector35.com> | 2019-08-23 11:57:47 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2019-08-23 11:57:47 -0400 |
| commit | 049c5515a58b51e9f3e2250e1ede35bb1c8506d5 (patch) | |
| tree | 021f805c2eea895d143ebfaabe1294262ca52fb0 /python/binaryview.py | |
| parent | bb3592d017114015e4d37457b9581c542340d25a (diff) | |
Fix binaryview _read method for python3 compatability.
Diffstat (limited to 'python/binaryview.py')
| -rw-r--r-- | python/binaryview.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 199e8015..6b5ad48e 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -1779,9 +1779,10 @@ class BinaryView(object): data = self.perform_read(offset, length) if data is None: return 0 + data = cstr(data) if len(data) > length: data = data[0:length] - ctypes.memmove(dest, str(data), len(data)) + ctypes.memmove(dest, data, len(data)) return len(data) except: log.log_error(traceback.format_exc()) |
