diff options
Diffstat (limited to 'src/entropy/beos_stats/es_beos.cpp')
-rw-r--r-- | src/entropy/beos_stats/es_beos.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/entropy/beos_stats/es_beos.cpp b/src/entropy/beos_stats/es_beos.cpp index 0fd9199bd..b5a5e7fee 100644 --- a/src/entropy/beos_stats/es_beos.cpp +++ b/src/entropy/beos_stats/es_beos.cpp @@ -19,6 +19,7 @@ u32bit BeOS_EntropySource::fast_poll(byte buf[], u32bit length) { if(length == 0) return 0; + length = std::min<u32bit>(length, 32); u32bit buf_i = 0; |