- Timestamp:
- Mar 30, 2010, 11:14:34 AM (14 years ago)
- Location:
- CMT/HEAD
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/ChangeLog
r537 r538 1 2010-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 1 8 2010-03-29 <rybkin@lal.in2p3.fr> 424 2 9 -
CMT/HEAD/source/cmt_system.cxx
r535 r538 75 75 if (pwd_env != 0) 76 76 { 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); 78 80 } 79 81 else -
CMT/HEAD/source/cmt_use.cxx
r537 r538 1925 1925 cmt_string expanded_path = path; 1926 1926 1927 cmt_string here;1928 if (curdir)1929 here = CmtSystem::pwd ();1930 1931 1927 // 1932 1928 // If the path specified in this use is a true absolute path, … … 1968 1964 // { 1969 1965 // if (reach_package ("", native_version)) 1966 1967 cmt_string here = CmtSystem::pwd (); 1968 1970 1969 if (reach_package (here, native_version)) 1971 1970 {
Note: See TracChangeset
for help on using the changeset viewer.