From 0cb9f7f7aa8f4255fafb5431dcc595ce183bc376 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sun, 13 Jun 2021 18:49:19 +0200 Subject: Revert "BUG: revise string_from_pyobj/try_pyarr_from_string with respect to malloc and copy." (#19235) --- 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 fe21d4b9b..0411b62e0 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); + memset(s,0,100*sizeof(char)); if (!PyArg_ParseTuple(capi_args,"O!|:wrap.attrs", &PyArray_Type,&arr_capi)) return NULL; -- cgit v1.2.1