grbgooglefan wrote:
> char* plevel = NULL;
> if(NULL != (plevel = PyString_AsString(pResult))){
> ret = 0;
> strncpy(szEvalResult,plevel,strlen(plevel));
strncpy doesn't check the size of the target buffer, so that's no
different from just doing strcpy(szEvalR
On Jan 3, 8:49 pm, grbgooglefan <[EMAIL PROTECTED]> wrote:
> On Jan 3, 8:02 pm, Phil Thompson <[EMAIL PROTECTED]>
> wrote:
>
>
>
>
>
> > On Thursday 03 January 2008, grbgooglefan wrote:
>
> > > I have a following C++ code which uses PyObject_CallObject to evaluate
> > > expressions dynamically. Thi
On Jan 3, 8:02 pm, Phil Thompson <[EMAIL PROTECTED]>
wrote:
> On Thursday 03 January 2008, grbgooglefan wrote:
>
> > I have a following C++ code which uses PyObject_CallObject to evaluate
> > expressions dynamically. This code sets the input parameters for the
> > function also dynamically. After c
On Thursday 03 January 2008, grbgooglefan wrote:
> I have a following C++ code which uses PyObject_CallObject to evaluate
> expressions dynamically. This code sets the input parameters for the
> function also dynamically. After calling this function 4 times (with
> these shown values), PyObject_Cal
grbgooglefan wrote:
> I have a following C++ code which uses PyObject_CallObject to evaluate
> expressions dynamically. This code sets the input parameters for the
> function also dynamically. After calling this function 4 times (with
> these shown values), PyObject_CallObject causes application