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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user