Fixes #1
This commit is contained in:
@@ -163,6 +163,7 @@ ecotx_t *readnext_ecotaxon(FILE *f,ecotx_t *taxon)
|
|||||||
"Allocate taxon scientific name");
|
"Allocate taxon scientific name");
|
||||||
|
|
||||||
strncpy(taxon->name,raw->name,raw->namelength);
|
strncpy(taxon->name,raw->name,raw->namelength);
|
||||||
|
(taxon->name)[raw->namelength] = '\0';
|
||||||
|
|
||||||
return taxon;
|
return taxon;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user