hi,

> main
> {
>     char foo[BUF_SIZE];
>     strcpy(foo, textNode.getNodeValue().transcode());

^^^^^^^^^^^^^^ generating memory hole here

>     trim (foo);
> }

from the DOM_Strin.transcode() doc:

-------------------

 char * DOMString::transcode (  ) const

        Returns a copy of the string, transcoded to the local code page.

        The caller owns the (char *) string that is returned, and is responsible for 
deleting it.

        Returns:
        A pointer to a newly allocated buffer of char elements, which represents the 
original string, but in the local encoding.

-------------------

regards
        stefan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to