$OpenBSD: patch-lib_ttyui_pgpUserIO_c,v 1.1 2002/04/23 06:38:48 fgsch Exp $ --- lib/ttyui/pgpUserIO.c.orig Sat Feb 7 16:54:57 1998 +++ lib/ttyui/pgpUserIO.c Tue Apr 23 03:06:29 2002 @@ -1321,7 +1321,7 @@ pgpDevRandomAccum(int fd, unsigned count pgpAssert(fd >= 0); for(i = 0; i <= count; ++i) { - RandBuf = read(fd, &RandBuf, count); + read(fd, &RandBuf, 1); pgpRandomAddBytes(&pgpRandomPool, (byte *)&RandBuf, sizeof(RandBuf)); pgpRandPoolAddEntropy(256); }