diff --git a/AUTHORS b/AUTHORS index 0b4b5f15..866f0d70 100644 --- a/AUTHORS +++ b/AUTHORS @@ -456,6 +456,9 @@ Pavol Babincak Peder Stray Fix handling of key presses turning up as key prefixes +Peter Collingbourne + Fixed compiler errors and warnings in src/util/random.c where CONFIG_SSL undefined + Peter Gervai Manpage updates Mailcap to links.cfg convertor diff --git a/src/util/random.c b/src/util/random.c index 42c6611c..cb4f5e80 100644 --- a/src/util/random.c +++ b/src/util/random.c @@ -6,6 +6,7 @@ #endif #include +#include #include #include "elinks.h" @@ -95,7 +96,7 @@ random_nonce(unsigned char buf[], size_t size) if (!f) f = fopen("/dev/prandom", "rb"); /* OpenBSD */ if (f) { - i = fread(data, 1, length, f); + i = fread(buf, 1, size, f); fclose(f); }