=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/match.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- src/usr.bin/mg/match.c 2005/11/18 20:56:53 1.12 +++ src/usr.bin/mg/match.c 2006/07/25 08:22:32 1.13 @@ -1,4 +1,4 @@ -/* $OpenBSD: match.c,v 1.12 2005/11/18 20:56:53 deraadt Exp $ */ +/* $OpenBSD: match.c,v 1.13 2006/07/25 08:22:32 kjell Exp $ */ /* This file is in the public domain. */ @@ -105,7 +105,7 @@ for (;;) { if (cbo == 0) { clp = lback(clp); /* beginning of line */ - if (clp == curbp->b_linep) + if (clp == curbp->b_headp) return (FALSE); cbo = llength(clp) + 1; }