*/
-static const char rcsid[] = "#(@) $Id$";
-
-
-
/****h* ABOUT/xml_element
* NAME
* xml_element
char *NewBuffer;
int ToBeXmlEscaped=0;
int iLength;
- bufcopy = buf;
+ bufcopy = (const unsigned char *) buf;
iLength= old_len ? old_len : strlen(buf);
while(*bufcopy) {
if( should_escape(*bufcopy, flags) ) {
NewBuffer= emalloc(iLength+1);
if(NewBuffer) {
- bufcopy=buf;
+ bufcopy = (const unsigned char *) buf;
while(*bufcopy) {
if(should_escape(*bufcopy, flags)) {
iNewBufLen += create_xml_escape(NewBuffer+iNewBufLen,*bufcopy);
}
/* parse the XML */
- if(XML_Parse(parser, in_buf, len, 1) == 0) {
+ if(XML_Parse(parser, (const unsigned char *) in_buf, len, 1) == 0) {
enum XML_Error err_code = XML_GetErrorCode(parser);
int line_num = XML_GetCurrentLineNumber(parser);
int col_num = XML_GetCurrentColumnNumber(parser);
long byte_idx = XML_GetCurrentByteIndex(parser);
/* int byte_total = XML_GetCurrentByteCount(parser); */
- const char * error_str = XML_ErrorString(err_code);
+ const char * error_str = (const char *) XML_ErrorString(err_code);
if(byte_idx > len) {
byte_idx = len;
}