Skip to content
Snippets Groups Projects
Commit cb4d3a47 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

instituteCompareKernel(): compare full lenght of longnames.

parent 5ae93b17
No related branches found
No related tags found
No related merge requests found
Pipeline #9522 failed
......@@ -3,6 +3,10 @@
* using CGRIBEX library version 2.0.0
* Version 2.0.0 released
2021-07-19 Uwe Schulzweida
* instituteCompareKernel(): compare full lenght of longnames
2021-07-19 Uwe Schulzweida
* Allow UUID starting with zero (bug fix)
......
......@@ -102,7 +102,7 @@ instituteCompareKernel(institute_t *ip1, institute_t *ip2)
{
const size_t len1 = strlen(ip1->longname);
const size_t len2 = strlen(ip2->longname);
if ( (len1 < len2) || memcmp(ip2->longname, ip1->longname, len2) ) differ = 1;
if ( (len1 != len2) || memcmp(ip2->longname, ip1->longname, len2) ) differ = 1;
}
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment