Replaced unsafe strcpy

This commit is contained in:
Robert Osfield
2016-06-28 16:37:58 +01:00
parent 847eea5b5d
commit 70f47cedc7

View File

@@ -691,8 +691,8 @@ trpgrAppFile *trpgrAppFileCache::GetFile(trpgEndian ness,int id,int col,int row)
int len = strlen(baseName);
while(--len > 0) {
if(baseName[len]==PATHSEPERATOR[0]) {
strcpy(filebase,&baseName[len+1]);
strcpy(dir,baseName);
osgDB::stringcopyfixedsize(filebase,&baseName[len+1]);
osgDB::stringcopyfixedsize(dir,baseName);
dir[len]='\0';
break;
}