From 4a006587d8e305fa526a6d9c7948f9bb20b2a96a Mon Sep 17 00:00:00 2001 From: Dave Goodwin Date: Sat, 9 Oct 2004 15:18:36 +0000 Subject: [PATCH] corrected problem with truncation of error messages --- Cantera/python/src/pyutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cantera/python/src/pyutils.h b/Cantera/python/src/pyutils.h index dbad7f134..2cdfb087d 100755 --- a/Cantera/python/src/pyutils.h +++ b/Cantera/python/src/pyutils.h @@ -5,7 +5,7 @@ static PyObject* reportCanteraError() { char* buf = 0; - int buflen = getCanteraError(0, buf); + int buflen = getCanteraError(0, buf) + 1; buf = new char[buflen+1]; getCanteraError(buflen, buf); PyErr_SetString(ErrorObject,buf);