X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/ad30ce51bf609c35cd99a9ca46dd859b17d8164a..408ea0b9ceafdc9f861701cfb14b57d09aa47777:/lookup.c?ds=sidebyside diff --git a/lookup.c b/lookup.c index e4cab46..e5cd1ae 100644 --- a/lookup.c +++ b/lookup.c @@ -17,6 +17,7 @@ #include "charfuncs.h" #include "cleankey.h" #include "cleanup.h" +#include "config.h" #include "getcgi.h" #include "keydb.h" #include "keyindex.h" @@ -103,7 +104,7 @@ int main(int argc, char *argv[]) search = params[i+1]; params[i+1] = NULL; if (search != NULL) { - keyid = strtoul(search, &end, 16); + keyid = strtoull(search, &end, 16); if (*search != 0 && end != NULL && *end == 0) { @@ -211,7 +212,8 @@ int main(int argc, char *argv[]) } if (!mrhkp) { puts("