cast void * to char * when using it for %s formating in printf.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18059 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-09-08 09:54:01 +00:00
parent 2acf7df729
commit dd04abbea7

View File

@@ -730,7 +730,8 @@ collect_cert(struct p11_module *p, struct p11_slot *slot,
if ((CK_LONG)query[2].ulValueLen != -1) {
char *str;
asprintf(&str, "%.*s", (int)query[2].ulValueLen, query[2].pValue);
asprintf(&str, "%.*s",
(int)query[2].ulValueLen, (char *)query[2].pValue);
if (str) {
hx509_cert_set_friendly_name(cert, str);
free(str);