mirror of https://github.com/stella-emu/stella.git
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:
|
// two chars, so this is safe:
|
||||||
_path += p.c_str() + 1;
|
_path += p.c_str() + 1;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
_path = p;
|
||||||
}
|
}
|
||||||
// Expand './' to the current working directory,
|
// Expand './' to the current working directory,
|
||||||
// likewise if the path is relative (doesn't start with '/')
|
// likewise if the path is relative (doesn't start with '/')
|
||||||
|
@ -180,6 +182,8 @@ POSIXFilesystemNode::POSIXFilesystemNode(const string& p, bool verify)
|
||||||
else
|
else
|
||||||
_path = _path + '/' + p;
|
_path = _path + '/' + p;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
_path = p;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
_path = p;
|
_path = p;
|
||||||
|
|
Loading…
Reference in New Issue