Added missing NULL byte for resource

Added missing NULL byte for resource
This commit is contained in:
MassimilianoPinto
2015-09-18 15:27:36 +02:00
parent 2a2582067a
commit 67c9f30632

View File

@ -2174,6 +2174,7 @@ int tmp;
free(dbkey); free(dbkey);
return NULL; return NULL;
} }
dbkey->resource[tmp] = 0; // NULL Terminate
} }
else // NULL is valid, so represent with a length of -1 else // NULL is valid, so represent with a length of -1
{ {