From e0122e79c1f2b0a090ce1ba6bc7439f06fa1d237 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 13 Apr 2021 01:40:16 +0200 Subject: Make some fixes and add demos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libsecauth_format_spec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsecauth_format_spec.c') 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; } -- cgit v1.2.3-70-g09d2