Commit a03059cb authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

model.c: changed memcmp to strncmp

parent 160ea631
......@@ -183,9 +183,9 @@ int modelInq(int instID, int modelgribID, char *name)
if ( modelptr->name )
{
len = strlen(modelptr->name);
if ( memcmp(modelptr->name, name, len) == 0 ) break;
if ( strncmp(modelptr->name, name, len) == 0 ) break;
len = strlen(name);
if ( memcmp(modelptr->name, name, len) == 0 ) break;
if ( strncmp(modelptr->name, name, len) == 0 ) break;
}
}
}
......
Supports Markdown
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