X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/9bcf53c1662548d457920cd415a2c7266c1128e2..HEAD:/lookup.c diff --git a/lookup.c b/lookup.c index 273afc2..9af11d9 100644 --- a/lookup.c +++ b/lookup.c @@ -245,7 +245,7 @@ int main(int argc, char *argv[]) size_t length = 0; if (getphoto(publickey, indx, &photo, - &length)) { + &length) == ONAK_E_OK) { fwrite(photo, 1, length,