Crash Fixes: Buffer overrun fix; Tree view deleted row fix (was trying to collapse...
[ede] / explorer / src / ExplorerWindow.ec
index 20747ee..6641431 100644 (file)
@@ -135,7 +135,7 @@ class ExplorerWindow : Window
             case goUp:
             {
                char * path = view.path;
-               char * newPath = new char[strlen(path)];
+               char * newPath = new char[strlen(path)+1];
                StripLastDirectory(path, newPath);
                if(!newPath[0])
                {