(make_etype_info2_entry): NUL terminate the string

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15398 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-06-15 11:34:53 +00:00
parent 5e9e3d8374
commit f790e9089a

View File

@@ -422,6 +422,7 @@ make_etype_info2_entry(ETYPE_INFO2_ENTRY *ent, Key *key)
return ENOMEM;
}
memcpy(*ent->salt, key->salt->salt.data, key->salt->salt.length);
(*ent->salt)[key->salt->salt.length] = '\0';
} else
ent->salt = NULL;