=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/Attic/random.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- src/usr.bin/mg/Attic/random.c 2006/07/25 08:22:32 1.21 +++ src/usr.bin/mg/Attic/random.c 2006/07/25 08:27:09 1.22 @@ -1,4 +1,4 @@ -/* $OpenBSD: random.c,v 1.21 2006/07/25 08:22:32 kjell Exp $ */ +/* $OpenBSD: random.c,v 1.22 2006/07/25 08:27:09 kjell Exp $ */ /* This file is in the public domain. */ @@ -31,7 +31,7 @@ int ratio; /* collect the data */ - clp = lforw(curbp->b_headp); + clp = bfirstlp(curbp); cchar = 0; cline = 0; cbyte = 0;