aboutsummaryrefslogtreecommitdiffstats
path: root/libsecauth_format_spec.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-13 01:40:16 +0200
committerMattias Andrée <maandree@kth.se>2021-04-13 01:40:16 +0200
commite0122e79c1f2b0a090ce1ba6bc7439f06fa1d237 (patch)
treeb99fe9384f2a5e8fc00494ee15b44fcad8df2b59 /libsecauth_format_spec.c
parentFirst commit (diff)
downloadsecauth-e0122e79c1f2b0a090ce1ba6bc7439f06fa1d237.tar.gz
secauth-e0122e79c1f2b0a090ce1ba6bc7439f06fa1d237.tar.bz2
secauth-e0122e79c1f2b0a090ce1ba6bc7439f06fa1d237.tar.xz
Make some fixes and add demos
Signed-off-by: Mattias Andrée <maandree@kth.se>
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;
}