You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/06/20 10:31:56 UTC

svn commit: r548993 - /webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c

Author: dinesh
Date: Wed Jun 20 01:31:51 2007
New Revision: 548993

URL: http://svn.apache.org/viewvc?view=rev&rev=548993
Log:
guththila memory_reader bug fixed

Modified:
    webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c

Modified: webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c?view=diff&rev=548993&r1=548992&r2=548993
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c Wed Jun 20 01:31:51 2007
@@ -21,6 +21,7 @@
 guththila_create(axutil_env_t * environment,
 				 guththila_reader_t * r)
 {
+    int size = 0;
     guththila_t *parser =
         (guththila_t *) AXIS2_MALLOC(
             environment->allocator, sizeof(guththila_t));
@@ -38,6 +39,7 @@
 														   reader_impl->buffer, 
 														   reader_impl->buffer_size);
         parser->buffer = reader_buffer;
+        size = reader_impl->buffer_size;
     }
     else
         parser->buffer = guththila_buffer_create(environment, GUTHTHILA_BUFFER_SIZE);
@@ -53,7 +55,7 @@
     parser->reader = r;
     parser->_next = 0;
     parser->offset = 0;
-    parser->last = -1;
+    parser->last = size;
     parser->status = S_1;
     parser->unicode_state = None;
     parser->xsw = NULL;



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org