Commit e0c279f4 authored by Sean McBride's avatar Sean McBride
Browse files

Fixed cppcheck warning about all-const params to strncmp

Change-Id: I7adc8d5ee3a620791a02c8de31e4d8e3dbab8c99
parent 18a804f8
......@@ -661,16 +661,14 @@ void vtkPDataSetReader::ReadVTKFileInformation(
vtkInformation* info = outputVector->GetInformationObject(0);
// To avoid UMR in the first string comparison
strcpy(str, " ");
// Try to find the line that specifies the dataset type.
i = 0;
while (strncmp(str, "DATASET", 7) != 0 && i < 6)
do
{
file->getline(str, 1024);
++i;
}
while (strncmp(str, "DATASET", 7) != 0 && i < 6);
if (strncmp(str, "DATASET POLYDATA", 16) == 0)
{
......
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