diff options
author | Mattias Andrée <maandree@kth.se> | 2023-06-23 16:24:26 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-06-23 16:24:26 +0200 |
commit | 2a717740fa534a3a5bd0040ef9606e15bbe7115c (patch) | |
tree | e78cd57b48a31c9178d12cac53d0f40a957becf3 /key2root-lskeys.c | |
parent | Implement authentication (diff) | |
download | key2root-2a717740fa534a3a5bd0040ef9606e15bbe7115c.tar.gz key2root-2a717740fa534a3a5bd0040ef9606e15bbe7115c.tar.bz2 key2root-2a717740fa534a3a5bd0040ef9606e15bbe7115c.tar.xz |
Fix mistakes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | key2root-lskeys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/key2root-lskeys.c b/key2root-lskeys.c index a25b32d..85d6661 100644 --- a/key2root-lskeys.c +++ b/key2root-lskeys.c @@ -27,7 +27,7 @@ outputkey(char *data, size_t whead, size_t *rheadp, size_t *rhead2p, size_t *lin int failed = 0; size_t len; - while (*rhead2p < whead || data[*rhead2p] != '\n') + while (*rhead2p < whead && data[*rhead2p] != '\n') ++*rhead2p; if (data[*rhead2p] != '\n') |