You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2003/04/21 06:31:28 UTC

cvs commit: xml-xerces/c/src/xercesc/util/Platforms/Tru64 Tru64PlatformUtils.cpp

peiyongz    2003/04/20 21:31:28

  Modified:    c/src/xercesc/util/Platforms/Tru64 Tru64PlatformUtils.cpp
  Log:
  performance tuning
  
  Revision  Changes    Path
  1.7       +3 -4      xml-xerces/c/src/xercesc/util/Platforms/Tru64/Tru64PlatformUtils.cpp
  
  Index: Tru64PlatformUtils.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Platforms/Tru64/Tru64PlatformUtils.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Tru64PlatformUtils.cpp	9 Mar 2003 17:00:39 -0000	1.6
  +++ Tru64PlatformUtils.cpp	21 Apr 2003 04:31:28 -0000	1.7
  @@ -343,10 +343,9 @@
     ArrayJanitor<char> janText(newSrc);
   
     // Use a local buffer that is big enough for the largest legal path
  -  char *absPath = new char[PATH_MAX];
  -  ArrayJanitor<char> janText2(absPath);
  +  char absPath[PATH_MAX];
     //get the absolute path
  -  char* retPath = realpath(newSrc, absPath);
  +  char* retPath = realpath(newSrc, &absPath[0]);
   
     if (!retPath)
     {
  
  
  

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