summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-06-09 11:54:49 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-06-09 11:54:49 -0700
commit75cdf3d82e96e4fb605f3b0ea85961bbc24e70d8 (patch)
tree1a860fbb7b404a0670e8c1eea11edb8c062bf340
parent558cd20c29db0cd89c4d92fc354602650f861064 (diff)
parentf502acff4a5858d1d0454079add34f836789e86d (diff)
downloadnumpy-75cdf3d82e96e4fb605f3b0ea85961bbc24e70d8.tar.gz
Merge pull request #3418 from cgohlke/patch-4
MAINT: use PyOS_snprintf instead of snprintf
-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);