summaryrefslogtreecommitdiff
path: root/bcrypt/bcrypt_python.c
diff options
context:
space:
mode:
Diffstat (limited to 'bcrypt/bcrypt_python.c')
-rw-r--r--bcrypt/bcrypt_python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bcrypt/bcrypt_python.c b/bcrypt/bcrypt_python.c
index fd59bbb..1c141e2 100644
--- a/bcrypt/bcrypt_python.c
+++ b/bcrypt/bcrypt_python.c
@@ -280,7 +280,7 @@ bcrypt_kdf(PyObject *self, PyObject *args, PyObject *kw_args)
if (ret != 0)
PyErr_SetString(PyExc_ValueError, "kdf failed");
else
- o = PyBytes_FromStringAndSize(key, desired_key_bytes);
+ o = PyBytes_FromStringAndSize((char *)key, desired_key_bytes);
bzero(key, desired_key_bytes);
free(key);
return o;