diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2008-04-29 00:13:25 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2008-04-29 00:13:25 +0000 |
commit | e4d0d765d1ca1784645d836a865e85e4219b0103 (patch) | |
tree | dd6ec623aca9e39adebd6a665cee36eb447d91c0 | |
parent | cdc4c0abf4ed941ccfd46f785bfe44ca4aeedad5 (diff) | |
download | numpy-e4d0d765d1ca1784645d836a865e85e4219b0103.tar.gz |
Fix python_xerbla for compilers that do not have inline strlen defined.
-rw-r--r-- | numpy/linalg/python_xerbla.c | 3 |
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' ) |