ports/security/pgp5/patches/patch-lib_ttyui_pgpUserIO_c

12 lines
405 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
--- 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);
}