diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-04-14 10:44:19 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-04-14 18:10:27 +0200 |
commit | e51cae33a9110e109400c1e8d6f8e7a314ae4bc6 (patch) | |
tree | 634733b4fbf790041a66df9d9830c336e7467c5a /src/libcharon | |
parent | 1f02bdc8d30a15d09d6cc37d934aa782d5908497 (diff) | |
download | strongswan-e51cae33a9110e109400c1e8d6f8e7a314ae4bc6.tar.bz2 strongswan-e51cae33a9110e109400c1e8d6f8e7a314ae4bc6.tar.xz |
Fix compiler warnings at creation of CRL cache filenames.
This was not really a problem because ptr is the first member of a chunk_t
and it contains a null-terminated string at that point. But it's clearer
this way.
Diffstat (limited to 'src/libcharon')
-rw-r--r-- | src/libcharon/plugins/stroke/stroke_cred.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/stroke/stroke_cred.c b/src/libcharon/plugins/stroke/stroke_cred.c index 83e5a9ad6..5a6d8febd 100644 --- a/src/libcharon/plugins/stroke/stroke_cred.c +++ b/src/libcharon/plugins/stroke/stroke_cred.c @@ -280,7 +280,7 @@ static void cache_cert(private_stroke_cred_t *this, certificate_t *cert) chunk = crl->get_authKeyIdentifier(crl); hex = chunk_to_hex(chunk, NULL, FALSE); - snprintf(buf, sizeof(buf), "%s/%s.crl", CRL_DIR, hex); + snprintf(buf, sizeof(buf), "%s/%s.crl", CRL_DIR, hex.ptr); free(hex.ptr); if (cert->get_encoding(cert, CERT_ASN1_DER, &chunk)) |