Commit 4191617b authored by Charles Law's avatar Charles Law
Browse files

Fix a segfault in an little used path.

parent 46f63256
......@@ -61,7 +61,7 @@ static inline int Chdir(const char* dir)
#define _unlink unlink
#endif
vtkCxxRevisionMacro(vtkKWDirectoryUtilities, "1.18");
vtkCxxRevisionMacro(vtkKWDirectoryUtilities, "1.19");
vtkStandardNewMacro(vtkKWDirectoryUtilities);
//----------------------------------------------------------------------------
......@@ -243,7 +243,7 @@ const char*const* vtkKWDirectoryUtilities::GetSystemPath()
vtkIdType length = vtkString::Length(pathEnv);
char* path = 0;
if((length > 0) && (path[length-1] != pathSep[0]))
if((length > 0) && (pathEnv[length-1] != pathSep[0]))
{
path = vtkString::Append(pathEnv, pathSep);
++length;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment