Make sure first argument is an int when using %.*s to print e.g. chunks
[strongswan.git] / src / libstrongswan / plugins / pem / pem_builder.c
index efbf47d..9b97770 100644 (file)
@@ -285,7 +285,7 @@ static status_t pem_to_bin(chunk_t *blob, bool *pgp)
                                        else
                                        {
                                                DBG1(DBG_ASN, "  encryption algorithm '%.*s'"
-                                                        " not supported", dek.len, dek.ptr);
+                                                        " not supported", (int)dek.len, dek.ptr);
                                                return NOT_SUPPORTED;
                                        }
                                        eat_whitespace(&value);