Changeset 538 for CMT/HEAD


Ignore:
Timestamp:
Mar 30, 2010, 11:14:34 AM (14 years ago)
Author:
rybkin
Message:

See C.L. 425

Location:
CMT/HEAD
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r537 r538  
     12010-03-30    <rybkin@lal.in2p3.fr> 425
     2
     3        * source/cmt_system.cxx: In function CmtSystem::pwd, use strncpy instead of
     4        strcpy
     5        * source/cmt_use.cxx: In function move_to, minor simplification
     6        path first, if it is specified
     7       
    182010-03-29    <rybkin@lal.in2p3.fr> 424
    29
  • CMT/HEAD/source/cmt_system.cxx

    r535 r538  
    7575  if (pwd_env != 0)
    7676    {
    77       strcpy (buffer, pwd_env);
     77      strncpy (buffer, pwd_env, PATH_MAX - 1);
     78      buffer[PATH_MAX - 1] = '\0'; // ensure termination
     79      //      strcpy (buffer, pwd_env);
    7880    }
    7981  else
  • CMT/HEAD/source/cmt_use.cxx

    r537 r538  
    19251925  cmt_string expanded_path = path;
    19261926
    1927   cmt_string here;
    1928   if (curdir)
    1929     here = CmtSystem::pwd ();
    1930 
    19311927  //
    19321928  // If the path specified in this use is a true absolute path,
     
    19681964//     {
    19691965//       if (reach_package ("", native_version))
     1966
     1967      cmt_string here = CmtSystem::pwd ();
     1968
    19701969      if (reach_package (here,  native_version))
    19711970        {
Note: See TracChangeset for help on using the changeset viewer.