summaryrefslogtreecommitdiff
path: root/numpy/linalg/lapack_lite/python_xerbla.c
diff options
context:
space:
mode:
authorChristoph Gohlke <cgohlke@uci.edu>2013-06-09 12:33:15 -0600
committerChristoph Gohlke <cgohlke@uci.edu>2013-06-09 12:33:15 -0600
commitf502acff4a5858d1d0454079add34f836789e86d (patch)
tree1a860fbb7b404a0670e8c1eea11edb8c062bf340 /numpy/linalg/lapack_lite/python_xerbla.c
parent558cd20c29db0cd89c4d92fc354602650f861064 (diff)
downloadnumpy-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.c2
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);