neilg       2003/12/02 08:21:41

  Modified:    c/src/xercesc/framework/psvi PSVIAttributeList.hpp
  Log:
  fix for ArrayIndexOutOfBoundsException in PSVIAttributeList; thanks to Pete Lloyd
  
  Revision  Changes    Path
  1.4       +4 -1      xml-xerces/c/src/xercesc/framework/psvi/PSVIAttributeList.hpp
  
  Index: PSVIAttributeList.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/psvi/PSVIAttributeList.hpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PSVIAttributeList.hpp     26 Nov 2003 16:20:37 -0000      1.3
  +++ PSVIAttributeList.hpp     2 Dec 2003 16:21:41 -0000       1.4
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.4  2003/12/02 16:21:41  neilg
  + * fix for ArrayIndexOutOfBoundsException in PSVIAttributeList; thanks to Pete Lloyd
  + *
    * Revision 1.3  2003/11/26 16:20:37  neilg
    * more complete implementation of PSVIAttributeList; remove some problematic 
const-ness
    *
  @@ -210,7 +213,7 @@
   inline PSVIAttribute *PSVIAttributeList::getPSVIAttributeToFill()
   {
       PSVIAttribute *retAttr = 0;
  -    if(fAttrPos+1 == fAttrList->size())
  +    if(fAttrPos == fAttrList->size())
       {
           retAttr = new (fMemoryManager)PSVIAttribute(fMemoryManager);
           fAttrList->addElement(retAttr);
  
  
  

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

Reply via email to