=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/extend.c,v retrieving revision 1.46 retrieving revision 1.47 diff -u -r1.46 -r1.47 --- src/usr.bin/mg/extend.c 2006/06/01 05:34:52 1.46 +++ src/usr.bin/mg/extend.c 2006/07/25 08:22:32 1.47 @@ -1,4 +1,4 @@ -/* $OpenBSD: extend.c,v 1.46 2006/06/01 05:34:52 jason Exp $ */ +/* $OpenBSD: extend.c,v 1.47 2006/07/25 08:22:32 kjell Exp $ */ /* This file is in the public domain. */ @@ -621,7 +621,7 @@ int s; static char excbuf[128]; - for (lp = lforw(bp->b_linep); lp != bp->b_linep; lp = lforw(lp)) { + for (lp = lforw(bp->b_headp); lp != bp->b_headp; lp = lforw(lp)) { if (llength(lp) >= 128) return (FALSE); (void)strncpy(excbuf, ltext(lp), llength(lp));