aboutsummaryrefslogtreecommitdiffstats
path: root/libsecauth_format_spec.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libsecauth_format_spec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsecauth_format_spec.c b/libsecauth_format_spec.c
index 83a08cf..09fa600 100644
--- a/libsecauth_format_spec.c
+++ b/libsecauth_format_spec.c
@@ -25,5 +25,5 @@ libsecauth_format_spec(struct libsecauth_spec *spec, char *buffer, size_t buffer
client_rounds, server_rounds,
spec->posthash ? "{$" : "", spec->posthash ? spec->posthash : "", spec->posthash ? "$}" : "",
expected_with_dollars ? "{$" : "", spec->expected ? spec->expected : "" , expected_with_dollars ? "$}" : "");
- return i > 0 ? (size_t)i : 0;
+ return i > 0 ? (size_t)(i + 1) : 0;
}