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:
stephena 2012-05-28 19:24:31 +00:00
parent c63117c38d
commit b0c1fb9d9f

View File

@ -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;