diff options
Diffstat (limited to 'source3/python/py_smb.c')
-rw-r--r-- | source3/python/py_smb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/python/py_smb.c b/source3/python/py_smb.c index ad83e469b2..d3858d33d8 100644 --- a/source3/python/py_smb.c +++ b/source3/python/py_smb.c @@ -235,7 +235,7 @@ static PyObject *py_smb_read(PyObject *self, PyObject *args, PyObject *kw) if (size < 1 || size > fsize - offset) size = fsize - offset; - if (!(data = (char *) malloc((size_t) size))) { + if (!(data = SMB_XMALLOC_ARRAY(char, size))) { PyErr_SetString(PyExc_RuntimeError, "malloc failed"); return NULL; } |