[Numpy-svn] r5110 - trunk/numpy/linalg

numpy-svn@scip... numpy-svn@scip...
Mon Apr 28 19:13:32 CDT 2008


Author: stefan
Date: 2008-04-28 19:13:25 -0500 (Mon, 28 Apr 2008)
New Revision: 5110

Modified:
   trunk/numpy/linalg/python_xerbla.c
Log:
Fix python_xerbla for compilers that do not have inline strlen defined.


Modified: trunk/numpy/linalg/python_xerbla.c
===================================================================
--- trunk/numpy/linalg/python_xerbla.c	2008-04-28 23:41:48 UTC (rev 5109)
+++ trunk/numpy/linalg/python_xerbla.c	2008-04-29 00:13:25 UTC (rev 5110)
@@ -22,7 +22,8 @@
 {
         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' )



More information about the Numpy-svn mailing list