xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peiyo...@apache.org
Subject cvs commit: xml-xerces/c/src/xercesc/util/Platforms/AIX AIXPlatformUtils.cpp
Date Mon, 21 Apr 2003 04:25:57 GMT
peiyongz    2003/04/20 21:25:56

  Modified:    c/src/xercesc/util/Platforms/AIX AIXPlatformUtils.cpp
  Log:
  performance tuning
  
  Revision  Changes    Path
  1.12      +3 -4      xml-xerces/c/src/xercesc/util/Platforms/AIX/AIXPlatformUtils.cpp
  
  Index: AIXPlatformUtils.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Platforms/AIX/AIXPlatformUtils.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- AIXPlatformUtils.cpp	9 Mar 2003 16:52:13 -0000	1.11
  +++ AIXPlatformUtils.cpp	21 Apr 2003 04:25:56 -0000	1.12
  @@ -322,10 +322,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


Mime
View raw message