Cast size_t len arguments to %.*s to int

This commit is contained in:
Martin Willi
2011-04-20 13:08:32 +02:00
parent 52846ec820
commit 4778655726
5 changed files with 23 additions and 21 deletions
+1 -1
View File
@@ -396,7 +396,7 @@ static void stroke_export(private_stroke_socket_t *this,
{
if (cert->get_encoding(cert, CERT_PEM, &encoded))
{
fprintf(out, "%.*s", encoded.len, encoded.ptr);
fprintf(out, "%.*s", (int)encoded.len, encoded.ptr);
free(encoded.ptr);
}
}