diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2021-06-15 16:16:26 +0300 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2021-06-15 16:16:26 +0300 |
commit | abe3eb210d0bdd0686d15a0aa57d3e73c5d7f673 (patch) | |
tree | 26d84efb97ce713bc4ce65208cc8da0df45546cb /numpy/f2py/tests/src/array_from_pyobj | |
parent | 923996a75a75fc5789a7495fcb14e4970e675bc6 (diff) | |
download | numpy-abe3eb210d0bdd0686d15a0aa57d3e73c5d7f673.tar.gz |
BUG: revise string_from_pyobj/try_pyarr_from_string with respect to malloc and copy (the second round)
Diffstat (limited to 'numpy/f2py/tests/src/array_from_pyobj')
-rw-r--r-- | numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c | 2 |
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 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; |