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:29:23 UTC

cvs commit: xml-xerces/c/src/xercesc/util/Platforms/OS400 OS400PlatformUtils.cpp

peiyongz    2003/04/20 21:29:23

  Modified:    c/src/xercesc/util/Platforms/OS400 OS400PlatformUtils.cpp
  Log:
  performance tuning
  
  Revision  Changes    Path
  1.7       +3 -4      xml-xerces/c/src/xercesc/util/Platforms/OS400/OS400PlatformUtils.cpp
  
  Index: OS400PlatformUtils.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Platforms/OS400/OS400PlatformUtils.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- OS400PlatformUtils.cpp	9 Mar 2003 16:59:11 -0000	1.6
  +++ OS400PlatformUtils.cpp	21 Apr 2003 04:29:22 -0000	1.7
  @@ -396,10 +396,9 @@
       char* newSrc = XMLString::transcode(srcPath);
        ArrayJanitor<char> janText(newSrc);
       // Use a local buffer that is big enough for the largest legal path
  -    char *absPath = new char[256];
  +    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