[Expat-discuss] (no subject)
Ken Johnston
klj at donnell.com
Wed Oct 29 08:20:40 EST 2003
> -----Original Message-----
> From: expat-discuss-bounces at libexpat.org [mailto:expat-discuss-
> bounces at libexpat.org] On Behalf Of Ponnusamy.Anand at choicepoint.com
> Sent: Tuesday, October 28, 2003 4:34 PM
> To: Fred L. Drake, Jr.
> Cc: expat-discuss at libexpat.org
> Subject: Re: [Expat-discuss] (no subject)
>
>
/*----------------------------------------------------------------------
--
> ----*/
> void
> XMLCharacterHandler(void *data, const char *s, int len)
> {
> trim_length_text((char *) s, &len);
>
> if (len)
> {
> elementvaluehandler(elementname, (char *) s, len);
>
/*----------------------------------------------------------------------
--
> ----*/
I'm not sure, but casting a constant char pointer and sending it to a
function that modifies the string looks like trouble to me.
> _______________________________________________
> Expat-discuss mailing list
> Expat-discuss at libexpat.org
> http://mail.libexpat.org/mailman/listinfo/expat-discuss
More information about the Expat-discuss
mailing list