neilg       2003/12/15 11:04:55

  Modified:    c/src/xercesc/framework/psvi XSAnnotation.cpp
  Log:
  fix segfault when a writeAnnotation() method was called
  
  Revision  Changes    Path
  1.7       +7 -1      xml-xerces/c/src/xercesc/framework/psvi/XSAnnotation.cpp
  
  Index: XSAnnotation.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/psvi/XSAnnotation.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- XSAnnotation.cpp  27 Nov 2003 21:29:05 -0000      1.6
  +++ XSAnnotation.cpp  15 Dec 2003 19:04:55 -0000      1.7
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.7  2003/12/15 19:04:55  neilg
  + * fix segfault when a writeAnnotation() method was called
  + *
    * Revision 1.6  2003/11/27 21:29:05  neilg
    * implement writeAnnotation; thanks to Dave Cargill
    *
  @@ -133,6 +136,7 @@
           , false
           , fMemoryManager
       );
  +    memBufIS->setEncoding(XMLUni::fgXMLChEncodingString);
   
       try
       {        
  @@ -140,6 +144,7 @@
       }
       catch (const XMLException&)
       {
  +        throw;
       }
   
       DOMNode* newElem = 
futureOwner->importNode((parser->getDocument())->getDocumentElement(), true);
  @@ -165,6 +170,7 @@
           , false
           , fMemoryManager
       );
  +    memBufIS->setEncoding(XMLUni::fgXMLChEncodingString);
   
       try
       {        
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to