Make sure first argument is an int when using %.*s to print e.g. chunks
[strongswan.git] / src / libcharon / plugins / eap_radius / eap_radius.c
index ed142b2..870ed1f 100644 (file)
@@ -264,7 +264,7 @@ static void process_filter_id(private_eap_radius_t *this, radius_message_t *msg)
                        case RAT_FILTER_ID:
                                filter_id = data;
                                DBG1(DBG_IKE, "received RADIUS attribute Filter-Id: "
-                                                         "'%.*s'", filter_id.len, filter_id.ptr);
+                                                         "'%.*s'", (int)filter_id.len, filter_id.ptr);
                                break;
                        default:
                                break;