summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/mmcli-output.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/mmcli-output.c b/cli/mmcli-output.c
index 0242460cc..8e038595b 100644
--- a/cli/mmcli-output.c
+++ b/cli/mmcli-output.c
@@ -960,8 +960,10 @@ dump_output_keyvalue (void)
n = multiple->values ? g_strv_length (multiple->values) : 0;
if (n > 0) {
+ guint aux = n;
+
key_length += ((strlen (KEY_ARRAY_VALUE_SUFFIX)) + 3);
- if (n > 10)
+ while ((aux /= 10) > 0)
key_length++;
}
}