mirror of https://github.com/stella-emu/stella.git
Fix out-of-bounds.
This commit is contained in:
parent
bf78b34848
commit
dff9606216
|
@ -247,7 +247,7 @@ bool FileListWidget::hasNextHistory()
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
string& FileListWidget::fixPath(string& path)
|
||||
{
|
||||
if(path.back() == FilesystemNode::PATH_SEPARATOR)
|
||||
if(path.length() > 0 && path.back() == FilesystemNode::PATH_SEPARATOR)
|
||||
{
|
||||
path.pop_back();
|
||||
if(path.length() == 2 && path.back() == ':')
|
||||
|
|
Loading…
Reference in New Issue