You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/09/27 21:24:58 UTC

cvs commit: xml-xerces/c/samples/SAX2Count SAX2Count.cpp

tng         2002/09/27 12:24:58

  Modified:    c/samples/SAX2Count SAX2Count.cpp
  Log:
  Samples Fix: wrong length in memset
  
  Revision  Changes    Path
  1.19      +4 -1      xml-xerces/c/samples/SAX2Count/SAX2Count.cpp
  
  Index: SAX2Count.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/SAX2Count/SAX2Count.cpp,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- SAX2Count.cpp	17 Jul 2002 18:58:35 -0000	1.18
  +++ SAX2Count.cpp	27 Sep 2002 19:24:57 -0000	1.19
  @@ -56,6 +56,9 @@
   
   /*
   * $Log$
  +* Revision 1.19  2002/09/27 19:24:57  tng
  +* Samples Fix: wrong length in memset
  +*
   * Revision 1.18  2002/07/17 18:58:35  tng
   * samples update: for testing special encoding purpose.
   *
  @@ -318,7 +321,7 @@
       {
           char fURI[1000];
           //initialize the array to zeros
  -        memset(fURI,0,sizeof(fURI));
  +        memset(fURI,0,strlen(fURI));
   
           if (doList) {
               if (! fin.eof() ) {
  
  
  

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