expat/lib xmlparse.c,1.100,1.101

"Karl Waclawek" <[email protected]>
Newsgroups gmane.text.xml.expat.cvs
Message-ID <[email protected]>
Update of /cvsroot/expat/expat/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv7708

Modified Files:
	xmlparse.c 
Log Message:
Applied patch for bug #667511 supplied by Jeremy Kloth.

Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -r1.100 -r1.101
--- xmlparse.c	30 Dec 2002 20:10:32 -0000	1.100
+++ xmlparse.c	15 Jan 2003 00:51:15 -0000	1.101
@@ -1730,7 +1730,7 @@
       if (tag->name.str == (XML_Char *)tag->buf)
         tag->name.str = (XML_Char *)temp;
       /* if tag->name.localPart is set (when namespace processing is on)
-         then update it as well, since it will always point into tag-buf
+         then update it as well, since it will always point into tag->buf
       */
       if (tag->name.localPart)
         tag->name.localPart = (XML_Char *)temp + (tag->name.localPart -
@@ -2344,10 +2344,10 @@
   if (tagNamePtr) {
     elementType = (ELEMENT_TYPE *)lookup(&dtd->elementTypes, tagNamePtr->str,0);
     if (!elementType) {
-      tagNamePtr->str = poolCopyString(&dtd->pool, tagNamePtr->str);
-      if (!tagNamePtr->str)
+      const XML_Char *name = poolCopyString(&dtd->pool, tagNamePtr->str);
+      if (!name)
         return XML_ERROR_NO_MEMORY;
-      elementType = (ELEMENT_TYPE *)lookup(&dtd->elementTypes, tagNamePtr->str,
+      elementType = (ELEMENT_TYPE *)lookup(&dtd->elementTypes, name,
                                            sizeof(ELEMENT_TYPE));
       if (!elementType)
         return XML_ERROR_NO_MEMORY;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.