diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-07-24 09:04:09 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-07-24 10:54:47 +0200 |
commit | a00ac1d9ee0b02b301c9986c019cec351662ddda (patch) | |
tree | 23e23c7fac655a039f033567cbb15498c45b0931 | |
parent | 0c76d820dc88a3019fbb7bd4a2cf0824cf71c13b (diff) | |
download | strongswan-a00ac1d9ee0b02b301c9986c019cec351662ddda.tar.bz2 strongswan-a00ac1d9ee0b02b301c9986c019cec351662ddda.tar.xz |
imv-attestation: Use proper cast for length when using %.*s
-rw-r--r-- | src/libpts/plugins/imv_attestation/attest_db.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libpts/plugins/imv_attestation/attest_db.c b/src/libpts/plugins/imv_attestation/attest_db.c index c8769e943..e55aa14b3 100644 --- a/src/libpts/plugins/imv_attestation/attest_db.c +++ b/src/libpts/plugins/imv_attestation/attest_db.c @@ -1556,8 +1556,8 @@ METHOD(attest_db_t, list_sessions, void, identity = identity.len ? identity : chunk_from_str("-"); printf("%4d: %T %2d %-20s %.*s%*s%.*s - %N\n", session_id, &created, FALSE, conn_id, product, device_len, device, - DEVICE_MAX_LEN - device_len + 1, " ", identity.len, identity.ptr, - TNC_IMV_Action_Recommendation_names, rec); + DEVICE_MAX_LEN - device_len + 1, " ", (int)identity.len, + identity.ptr, TNC_IMV_Action_Recommendation_names, rec); } e->destroy(e); } |