X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=lookup.c;h=a7d9c7c4f1c7dc8baecc74446e39dfb855ef84a7;hb=53bfe9d93deaae87df9ffc785027a928fe0e5e89;hp=3431690bde0e6afdc39a548ba49464cfa3d733cd;hpb=cc9554e545f58905fa020e23134a1ff29569ee16;p=onak.git 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,