corrected problem with truncation of error messages

This commit is contained in:
Dave Goodwin 2004-10-09 15:18:36 +00:00
parent 05ad08e3f5
commit 4a006587d8

View file

@ -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);