X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/c7102948c58ec797995297699bac64748d168bfd..8d69a3a1fe658793c25cbc1e3e45fe6cdcd629eb:/lookup.c diff --git a/lookup.c b/lookup.c index 3431690..a7d9c7c 100644 --- a/lookup.c +++ b/lookup.c @@ -207,7 +207,8 @@ int main(int argc, char *argv[]) unsigned char *photo = NULL; size_t length = 0; - if (getphoto(publickey, 0, &photo, &length)) { + if (getphoto(publickey, indx, &photo, + &length)) { fwrite(photo, 1, length,