svn commit: lorikeet r688 - in trunk/heimdal/lib/hx509: .

lha at samba.org lha at samba.org
Tue Nov 28 20:10:19 GMT 2006


Author: lha
Date: 2006-11-28 20:10:18 +0000 (Tue, 28 Nov 2006)
New Revision: 688

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=lorikeet&rev=688

Log:
pacify aix
Modified:
   trunk/heimdal/lib/hx509/Makefile.am
   trunk/heimdal/lib/hx509/keyset.c


Changeset:
Modified: trunk/heimdal/lib/hx509/Makefile.am
===================================================================
--- trunk/heimdal/lib/hx509/Makefile.am	2006-11-28 19:54:26 UTC (rev 687)
+++ trunk/heimdal/lib/hx509/Makefile.am	2006-11-28 20:10:18 UTC (rev 688)
@@ -1,4 +1,4 @@
-# $Id: Makefile.am,v 1.38 2006/10/21 13:30:07 lha Exp $
+# $Id: Makefile.am,v 1.40 2006/11/28 20:08:32 lha Exp $
 
 include $(top_srcdir)/Makefile.am.common
 
@@ -80,6 +80,7 @@
 	revoke.c
 
 libhx509_la_LIBADD = \
+	$(LIB_com_err) \
 	$(LIB_des) \
 	../asn1/libasn1.la \
 	$(LIB_roken) $(LIB_dlopen)

Modified: trunk/heimdal/lib/hx509/keyset.c
===================================================================
--- trunk/heimdal/lib/hx509/keyset.c	2006-11-28 19:54:26 UTC (rev 687)
+++ trunk/heimdal/lib/hx509/keyset.c	2006-11-28 20:10:18 UTC (rev 688)
@@ -32,7 +32,7 @@
  */
 
 #include "hx_locl.h"
-RCSID("$Id: keyset.c,v 1.16 2006/10/21 20:21:51 lha Exp $");
+RCSID("$Id: keyset.c,v 1.17 2006/11/28 20:07:57 lha Exp $");
 
 struct hx509_certs_data {
     struct hx509_keyset_ops *ops;
@@ -83,7 +83,9 @@
 
     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;



More information about the samba-cvs mailing list