You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2001/11/28 20:05:29 UTC

cvs commit: xml-xerces/c/src/util BinMemInputStream.cpp

knoaman     01/11/28 11:05:29

  Modified:    c/src/util BinMemInputStream.cpp
  Log:
  Bug 4442: fix by mlovett@uk.ibm.com
  
  Revision  Changes    Path
  1.5       +6 -2      xml-xerces/c/src/util/BinMemInputStream.cpp
  
  Index: BinMemInputStream.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/util/BinMemInputStream.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- BinMemInputStream.cpp	2000/05/15 22:31:20	1.4
  +++ BinMemInputStream.cpp	2001/11/28 19:05:29	1.5
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: BinMemInputStream.cpp,v $
  + * Revision 1.5  2001/11/28 19:05:29  knoaman
  + * Bug 4442: fix by mlovett@uk.ibm.com
  + *
    * Revision 1.4  2000/05/15 22:31:20  andyh
    * Replace #include<memory.h> with <string.h> everywhere.
    *
  @@ -134,7 +137,8 @@
   
       const unsigned int actualToRead = available < maxToRead ?
                                         available : maxToRead;
  -    for (unsigned int index = 0; index < actualToRead; index++)
  -        toFill[index] = fBuffer[fCurIndex++];
  +
  +    memcpy(toFill, &fBuffer[fCurIndex], actualToRead);
  +    fCurIndex += actualToRead;
       return actualToRead;
   }
  
  
  

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