X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/ad30ce51bf609c35cd99a9ca46dd859b17d8164a..e1385087ec060568a966a5305a9d88c24a2a0a55:/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("
"); - puts("Produced by onak " VERSION " by Jonathan McDowell"); + puts("Produced by onak " PACKAGE_VERSION + " by Jonathan McDowell"); end_html(); }