summaryrefslogtreecommitdiff
path: root/numpy/linalg/python_xerbla.c
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2008-04-29 00:13:25 +0000
committerStefan van der Walt <stefan@sun.ac.za>2008-04-29 00:13:25 +0000
commite4d0d765d1ca1784645d836a865e85e4219b0103 (patch)
treedd6ec623aca9e39adebd6a665cee36eb447d91c0 /numpy/linalg/python_xerbla.c
parentcdc4c0abf4ed941ccfd46f785bfe44ca4aeedad5 (diff)
downloadnumpy-e4d0d765d1ca1784645d836a865e85e4219b0103.tar.gz
Fix python_xerbla for compilers that do not have inline strlen defined.
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' )