Changeset 3129 in orxonox.OLD for orxonox/branches/images/importer/material.cc
- Timestamp:
- Dec 7, 2004, 8:54:09 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/images/importer/material.cc
r3128 r3129 58 58 return; 59 59 } 60 61 if (access (pName, F_OK) == 0) 60 char* tmpPName = new char[strlen(pName)]; 61 strncpy(tmpPName, pName, strlen(pName)-1); 62 63 if (access (tmpPName, F_OK) == 0) 62 64 { 63 65 struct stat status; 64 stat( pName, &status);66 stat(tmpPName, &status); 65 67 if (status.st_mode & S_IFDIR) 66 68 { … … 79 81 if (verbose >=1) 80 82 printf ("You tried to add non-existing folder %s to a PathList.\n", pName); 83 delete []tmpPName; 81 84 } 82 85
Note: See TracChangeset
for help on using the changeset viewer.