summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/__init__.py b/python/__init__.py
index da8abd02..b6fa9294 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -98,7 +98,7 @@ class DataBuffer:
if len(value) != 1:
raise ValueError, "expected single byte for assignment"
value = str(value)
- buf = ctypes.create_string_buffer(alue)
+ buf = ctypes.create_string_buffer(value)
ctypes.memmove(core.BNGetDataBufferContentsAt(self.handle, int(len(self) + i)), buf, 1)
else:
raise IndexError, "index out of range"