summaryrefslogtreecommitdiff
path: root/numpy/f2py/tests/src
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2021-06-13 18:49:19 +0200
committerGitHub <noreply@github.com>2021-06-13 18:49:19 +0200
commit0cb9f7f7aa8f4255fafb5431dcc595ce183bc376 (patch)
tree3292011a5ea50503a92aa0f14624295ce8e5c58b /numpy/f2py/tests/src
parentb5cc1f80c6747e6c19adeaf241d2d471d2b71cb7 (diff)
downloadnumpy-0cb9f7f7aa8f4255fafb5431dcc595ce183bc376.tar.gz
Revert "BUG: revise string_from_pyobj/try_pyarr_from_string with respect to malloc and copy." (#19235)
Diffstat (limited to 'numpy/f2py/tests/src')
-rw-r--r--numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c2
1 files changed, 1 insertions, 1 deletions
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;