From abe3eb210d0bdd0686d15a0aa57d3e73c5d7f673 Mon Sep 17 00:00:00 2001 From: Pearu Peterson Date: Tue, 15 Jun 2021 16:16:26 +0300 Subject: BUG: revise string_from_pyobj/try_pyarr_from_string with respect to malloc and copy (the second round) --- numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/f2py/tests/src/array_from_pyobj') diff --git a/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c b/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c index 0411b62e0..fe21d4b9b 100644 --- a/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c +++ b/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c @@ -93,7 +93,7 @@ static PyObject *f2py_rout_wrap_attrs(PyObject *capi_self, PyObject *strides = NULL; char s[100]; int i; - memset(s,0,100*sizeof(char)); + memset(s,0,100); if (!PyArg_ParseTuple(capi_args,"O!|:wrap.attrs", &PyArray_Type,&arr_capi)) return NULL; -- cgit v1.2.1