X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=onak.c;h=40e8b0e09277850b8beb4fa6c2465c16726f9efe;hb=efdb27e3516c0de570a7a1476d15c4e84ac0d25c;hp=30f771084931b3ee249f8d2e497d2d0edff89b55;hpb=d3e43ff563940e161075fe6cad02dd558e85ed8d;p=onak.git diff --git a/onak.c b/onak.c index 30f7710..40e8b0e 100644 --- a/onak.c +++ b/onak.c @@ -74,7 +74,7 @@ void dump_func(void *ctx, struct openpgp_publickey *key) state = (struct dump_ctx *) ctx; - if (state->fd == -1 || state->count > state->maxcount) { + if (state->fd == -1 || state->count++ > state->maxcount) { if (state->fd != -1) { close(state->fd); state->fd = -1;