From 3c181a88c6c03cde3d6abb917c656bbe6be8a130 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 9 May 2005 12:43:12 +0000 Subject: r6678: fix python python after talloc() shakeup (This used to be commit f629bffb1a6b8c2ea54fcfe33865b43559abbc77) --- source3/python/py_smb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/python/py_smb.c') 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; } -- cgit