Commit ae9aeb16 authored by Chris Harris's avatar Chris Harris
Browse files

Fix strncmp(...) length when looking for "edges"

Any tree contain edge data would fail to read. As the
strncmp(...) to look for "edges" was passing a length
of 4, this would also match "edge_data"! Use a length
of 5 instead.

Change-Id: I3ad38600edbadb4a8cd89f5bb4f448cff64f0f23
parent ddfcd0f4
...@@ -174,7 +174,7 @@ int vtkTreeReader::RequestData( ...@@ -174,7 +174,7 @@ int vtkTreeReader::RequestData(
continue; continue;
} }
if(!strncmp(this->LowerCase(line), "edges", 4)) if(!strncmp(this->LowerCase(line), "edges", 5))
{ {
int edge_count = 0; int edge_count = 0;
if(!this->Read(&edge_count)) if(!this->Read(&edge_count))
......
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