You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2008/04/24 14:50:24 UTC
svn commit: r651248 -
/webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.c
Author: dimuthu
Date: Thu Apr 24 05:50:15 2008
New Revision: 651248
URL: http://svn.apache.org/viewvc?rev=651248&view=rev
Log:
Fixing https://issues.apache.org/jira/browse/AXIS2C-1119, for more than 4 namespace declarations
Modified:
webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.c
Modified: webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.c?rev=651248&r1=651247&r2=651248&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.c Thu Apr 24 05:50:15 2008
@@ -986,7 +986,7 @@
sizeof(guththila_token_t *) *
(GUTHTHILA_XML_WRITER_NAMESP_DEF_SIZE
+ namesp->size));
- for (i = 0; i <= namesp->no; i++)
+ for (i = 0; i < namesp->no; i++)
{
tok_name[i] = namesp->name[i];
tok_uri[i] = namesp->uri[i];
@@ -996,12 +996,19 @@
namesp->name = tok_name;
namesp->uri = tok_uri;
namesp->size = GUTHTHILA_XML_WRITER_NAMESP_DEF_SIZE + namesp->size;
- namesp->name[++(namesp->no) - 1]->start =
+
+ namesp->name[namesp->no] =
+ guththila_tok_list_get_token(&wr->tok_list, env);
+ namesp->uri[namesp->no] =
+ guththila_tok_list_get_token(&wr->tok_list, env);
+
+ namesp->name[namesp->no ]->start =
GUTHTHILA_BUF_POS(wr->buffer, pref_start);
- namesp->name[namesp->no - 1]->size = pref_len;
- namesp->uri[namesp->no - 1]->start =
+ namesp->name[namesp->no ]->size = pref_len;
+ namesp->uri[namesp->no ]->start =
GUTHTHILA_BUF_POS(wr->buffer, uri_start);
- namesp->uri[namesp->no - 1]->size = uri_len;
+ namesp->uri[namesp->no ]->size = uri_len;
+ namesp->no ++;
#endif
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org