diff options
author | Christoph Gohlke <cgohlke@uci.edu> | 2013-06-09 12:33:15 -0600 |
---|---|---|
committer | Christoph Gohlke <cgohlke@uci.edu> | 2013-06-09 12:33:15 -0600 |
commit | f502acff4a5858d1d0454079add34f836789e86d (patch) | |
tree | 1a860fbb7b404a0670e8c1eea11edb8c062bf340 /numpy/linalg/lapack_lite/python_xerbla.c | |
parent | 558cd20c29db0cd89c4d92fc354602650f861064 (diff) | |
download | numpy-f502acff4a5858d1d0454079add34f836789e86d.tar.gz |
MAINT: use PyOS_snprintf instead of snprintf
PyOS_snprintf is portable and more secure than snprintf.
Diffstat (limited to 'numpy/linalg/lapack_lite/python_xerbla.c')
-rw-r--r-- | numpy/linalg/lapack_lite/python_xerbla.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/linalg/lapack_lite/python_xerbla.c b/numpy/linalg/lapack_lite/python_xerbla.c index 8bd069842..bc5d41f58 100644 --- a/numpy/linalg/lapack_lite/python_xerbla.c +++ b/numpy/linalg/lapack_lite/python_xerbla.c @@ -33,7 +33,7 @@ int xerbla_(char *srname, integer *info) while( len && srname[len-1]==' ' ) len--; - snprintf(buf, sizeof(buf), format, len, srname, *info); + PyOS_snprintf(buf, sizeof(buf), format, len, srname, *info); save = PyGILState_Ensure(); PyErr_SetString(PyExc_ValueError, buf); PyGILState_Release(save); |