forked from pool/libgcrypt
14 lines
520 B
Diff
14 lines
520 B
Diff
|
Index: libgcrypt-1.6.1/random/rndlinux.c
|
||
|
===================================================================
|
||
|
--- libgcrypt-1.6.1.orig/random/rndlinux.c
|
||
|
+++ libgcrypt-1.6.1/random/rndlinux.c
|
||
|
@@ -261,7 +261,7 @@ _gcry_rndlinux_gather_random (void (*add
|
||
|
|
||
|
do
|
||
|
{
|
||
|
- int nbytes = length < sizeof(buffer)? length : sizeof(buffer);
|
||
|
+ size_t nbytes = length < sizeof(buffer)? length : sizeof(buffer);
|
||
|
n = read(fd, buffer, nbytes );
|
||
|
if( n >= 0 && n > nbytes )
|
||
|
{
|