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:36 UTC

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

tng         2002/09/27 12:24:36

  Modified:    c/samples/DOMCount DOMCount.cpp
  Log:
  Samples Fix: wrong length in memset
  
  Revision  Changes    Path
  1.28      +2 -2      xml-xerces/c/samples/DOMCount/DOMCount.cpp
  
  Index: DOMCount.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/DOMCount/DOMCount.cpp,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- DOMCount.cpp	17 Jul 2002 18:58:35 -0000	1.27
  +++ DOMCount.cpp	27 Sep 2002 19:24:36 -0000	1.28
  @@ -284,7 +284,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