pkgsrc/devel/electric-fence/patches/patch-ac
reed 87346f72e8 Per my old PR #40238: Match up the directory name and package name
to match the source distfile name.
(It had three different names, including, the distfile name.)

This moves electricfence to electricfence and renames the package from
ElectricFence to electric-fence.
2010-02-14 00:06:16 +00:00

13 lines
406 B
Text

$NetBSD: patch-ac,v 1.1.1.1 2010/02/14 00:06:16 reed Exp $
--- tstheap.c.orig Fri Jan 20 05:54:32 1995
+++ tstheap.c
@@ -47,7 +47,7 @@
for ( ; count < duration; count++ ) {
void * * element = &pool[(int)(drand48() * POOL_SIZE)];
- size_t size = (size_t)(drand48() * (LARGEST_BUFFER + 1));
+ size_t size = (size_t)(lrand48() % (LARGEST_BUFFER + 1));
if ( *element ) {
free( *element );