mirror of
https://github.com/libretro/stella2023.git
synced 2024-12-04 23:46:57 +00:00
Error checking when processing filenames in UNIX.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2509 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
c63117c38d
commit
b0c1fb9d9f
@ -156,6 +156,8 @@ POSIXFilesystemNode::POSIXFilesystemNode(const string& p, bool verify)
|
||||
// two chars, so this is safe:
|
||||
_path += p.c_str() + 1;
|
||||
}
|
||||
else
|
||||
_path = p;
|
||||
}
|
||||
// Expand './' to the current working directory,
|
||||
// likewise if the path is relative (doesn't start with '/')
|
||||
@ -180,6 +182,8 @@ POSIXFilesystemNode::POSIXFilesystemNode(const string& p, bool verify)
|
||||
else
|
||||
_path = _path + '/' + p;
|
||||
}
|
||||
else
|
||||
_path = p;
|
||||
}
|
||||
else
|
||||
_path = p;
|
||||
|
Loading…
Reference in New Issue
Block a user