File capisuite-0.5.cvs.python-v2.5.diff of Package faxgate
diff -ur capisuite-0.5.cvs.orig/src/application/pythonscript.cpp capisuite-0.5.cvs/src/application/pythonscript.cpp
--- capisuite-0.5.cvs.orig/src/application/pythonscript.cpp 2003-02-19 09:19:53.000000000 +0100
+++ capisuite-0.5.cvs/src/application/pythonscript.cpp 2007-05-13 13:19:57.000000000 +0200
@@ -96,14 +96,14 @@
if ( !(py_traceback=cStringIO->cgetvalue(catch_stderr)) )
throw ApplicationError("unable to get traceback","PythonScript::run()");
- int length;
+ Py_ssize_t length;
char *traceback;
if (PyString_AsStringAndSize(py_traceback, &traceback, &length))
throw ApplicationError("unable to convert traceback to char*","PythonScript::run()");
error << prefix() << "A python error occured. See traceback below." << endl;
error << prefix() << "Python traceback: ";
- for (int i=0;i<length-1;i++) {
+ for (Py_ssize_t i=0;i<length-1;i++) {
error << traceback[i];
if (traceback[i]=='\n')
error << prefix() << "Python traceback: ";