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:28:45 UTC

cvs commit: xml-xerces/c/src/xercesc/util/Platforms/Linux LinuxPlatformUtils.cpp

peiyongz    2003/04/20 21:28:45

  Modified:    c/src/xercesc/util/Platforms/Linux LinuxPlatformUtils.cpp
  Log:
  performance tuning
  
  Revision  Changes    Path
  1.13      +5 -3      xml-xerces/c/src/xercesc/util/Platforms/Linux/LinuxPlatformUtils.cpp
  
  Index: LinuxPlatformUtils.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Platforms/Linux/LinuxPlatformUtils.cpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- LinuxPlatformUtils.cpp	9 Mar 2003 16:56:11 -0000	1.12
  +++ LinuxPlatformUtils.cpp	21 Apr 2003 04:28:45 -0000	1.13
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.13  2003/04/21 04:28:45  peiyongz
  + * performance tuning
  + *
    * Revision 1.12  2003/03/09 16:56:11  peiyongz
    * PanicHandler
    *
  @@ -468,10 +471,9 @@
       ArrayJanitor<char> janText(newSrc);
   
       // Use a local buffer that is big enough for the largest legal path
  -    char *absPath = new char[PATH_MAX];
  +    char absPath[PATH_MAX];
       // get the absolute path
  -    char* retPath = realpath(newSrc, absPath);
  -    ArrayJanitor<char> janText2(retPath);
  +    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