aboutsummaryrefslogtreecommitdiffstats
path: root/key2root-lskeys.c
diff options
context:
space:
mode:
Diffstat (limited to 'key2root-lskeys.c')
-rw-r--r--key2root-lskeys.c2
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')