aboutsummaryrefslogtreecommitdiffstats
path: root/smime
diff options
context:
space:
mode:
Diffstat (limited to 'smime')
-rw-r--r--smime/lib/e-cert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/smime/lib/e-cert.c b/smime/lib/e-cert.c
index 02b6ccdb3b..2591678cec 100644
--- a/smime/lib/e-cert.c
+++ b/smime/lib/e-cert.c
@@ -416,7 +416,7 @@ e_cert_get_usage(ECert *cert)
GString *str = g_string_new("");
CERTCertificate *icert = e_cert_get_internal_cert (cert);
- for (i=0;i<sizeof(usageinfo)/sizeof(usageinfo[0]);i++) {
+ for (i = 0; i < G_N_ELEMENTS (usageinfo); i++) {
if (icert->keyUsage & usageinfo[i].bit) {
if (str->len != 0)
g_string_append(str, ", ");