Remove anther strndup that causes AIX to fall over.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19180 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-11-28 20:07:57 +00:00
parent 4f855158da
commit 04fecea15c

View File

@@ -83,7 +83,9 @@ hx509_certs_init(hx509_context context,
residue = strchr(name, ':');
if (residue) {
type = strndup(name, residue - name);
type = malloc(residue - name + 1);
if (type)
strlcpy(type, name, residue - name + 1);
residue++;
if (residue[0] == '\0')
residue = NULL;