summaryrefslogtreecommitdiff
path: root/numpy/linalg/python_xerbla.c
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/linalg/python_xerbla.c')
-rw-r--r--numpy/linalg/python_xerbla.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/linalg/python_xerbla.c b/numpy/linalg/python_xerbla.c
index ed0cac9b5..4e5a68413 100644
--- a/numpy/linalg/python_xerbla.c
+++ b/numpy/linalg/python_xerbla.c
@@ -22,7 +22,8 @@ int xerbla_(char *srname, integer *info)
{
const char* format = "On entry to %.*s" \
" parameter number %d had an illegal value";
- char buf[strlen(format) + 6 + 4]; /* 6 for name, 4 for param. num. */
+ char buf[57 + 6 + 4]; /* 57 for strlen(format),
+ 6 for name, 4 for param. num. */
int len = 0; /* length of subroutine name*/
while( len<6 && srname[len]!='\0' )