mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
pki: Correctly use int as precision specifier when printing PEM certificate
This commit is contained in:
parent
644f74ad8f
commit
ffada7cb5a
@ -235,7 +235,7 @@ static bool write_cert(certificate_t *cert, pki_cert_type_t cert_type,
|
|||||||
DBG1(DBG_APP, "could not get certificate encoding");
|
DBG1(DBG_APP, "could not get certificate encoding");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
printf("%.*s", encoding.len, encoding.ptr);
|
printf("%.*s", (int)encoding.len, encoding.ptr);
|
||||||
chunk_free(&encoding);
|
chunk_free(&encoding);
|
||||||
path = "stdout";
|
path = "stdout";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user