X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/f81196236e05340a025e94f65830793c3d60401d..e0dd4d10f385cd19da389ec66622eea8aa66ae59:/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,