From: <ba...@us...> - 2008-09-17 22:16:16
|
Revision: 1005 http://omc.svn.sourceforge.net/omc/?rev=1005&view=rev Author: bartw Date: 2008-09-17 22:16:27 +0000 (Wed, 17 Sep 2008) Log Message: ----------- make sure vfprintf is called safely Modified Paths: -------------- cmpi-bindings/trunk/src/cmpi_provider_python.c Modified: cmpi-bindings/trunk/src/cmpi_provider_python.c =================================================================== --- cmpi-bindings/trunk/src/cmpi_provider_python.c 2008-09-17 22:07:47 UTC (rev 1004) +++ cmpi-bindings/trunk/src/cmpi_provider_python.c 2008-09-17 22:16:27 UTC (rev 1005) @@ -178,7 +178,7 @@ if (!PyString_Check(obstr)) TB_ERROR("getvalue() did not return a string"); - _SBLIM_TRACE(1,(PyString_AsString(obstr))); + _SBLIM_TRACE(1,("%s", PyString_AsString(obstr))); args = PyTuple_New(2); PyTuple_SetItem(args, 0, string2py("\n")); PyTuple_SetItem(args, 1, string2py("<br>")); @@ -352,7 +352,7 @@ PyErr_Print(); PyErr_Clear(); char* str = fmtstr("Python module does not contain \"%s\"", opname); - _SBLIM_TRACE(1,(str)); + _SBLIM_TRACE(1,("%s", str)); st->rc = CMPI_RC_ERR_FAILED; st->msg = hdl->broker->eft->newString(hdl->broker, str, NULL); free(str); @@ -363,7 +363,7 @@ { char* str = fmtstr("Python module attribute \"%s\" is not callable", opname); - _SBLIM_TRACE(1,(str)); + _SBLIM_TRACE(1,("%s", str)); st->rc = CMPI_RC_ERR_FAILED; st->msg = hdl->broker->eft->newString(hdl->broker, str, NULL); free(str); @@ -400,7 +400,7 @@ SWIG_PYTHON_THREAD_BEGIN_ALLOW; char* str = fmtstr("Python function \"%s\" didn't return a two-tuple", opname); - _SBLIM_TRACE(1,(str)); + _SBLIM_TRACE(1,("%s", str)); st->rc = CMPI_RC_ERR_FAILED; st->msg = hdl->broker->eft->newString(hdl->broker, str, NULL); free(str); @@ -419,7 +419,7 @@ { SWIG_PYTHON_THREAD_BEGIN_ALLOW; char* str = fmtstr("Python function \"%s\" didn't return a {<int>, <str>) two-tuple", opname); - _SBLIM_TRACE(1,(str)); + _SBLIM_TRACE(1,("%s", str)); st->rc = CMPI_RC_ERR_FAILED; st->msg = hdl->broker->eft->newString(hdl->broker, str, NULL); free(str); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |