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:31:13 UTC

cvs commit: xml-xerces/c/tests/DOM/DeprecatedDOMCount DeprecatedDOMCount.cpp

tng         2002/09/27 12:31:13

  Modified:    c/tests/DOM/DeprecatedDOMCount DeprecatedDOMCount.cpp
  Log:
  Samples Fix: wrong length in memset
  
  Revision  Changes    Path
  1.3       +2 -2      xml-xerces/c/tests/DOM/DeprecatedDOMCount/DeprecatedDOMCount.cpp
  
  Index: DeprecatedDOMCount.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/tests/DOM/DeprecatedDOMCount/DeprecatedDOMCount.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DeprecatedDOMCount.cpp	17 Jul 2002 18:58:48 -0000	1.2
  +++ DeprecatedDOMCount.cpp	27 Sep 2002 19:31:12 -0000	1.3
  @@ -232,7 +232,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