diff options
Diffstat (limited to 'usr.bin/mg/extend.c')
-rw-r--r-- | usr.bin/mg/extend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/extend.c b/usr.bin/mg/extend.c index 7080486f2a4..54f551c1134 100644 --- a/usr.bin/mg/extend.c +++ b/usr.bin/mg/extend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: extend.c,v 1.47 2006/07/25 08:22:32 kjell Exp $ */ +/* $OpenBSD: extend.c,v 1.48 2006/07/25 08:27:09 kjell Exp $ */ /* This file is in the public domain. */ @@ -621,7 +621,7 @@ evalbuffer(int f, int n) int s; static char excbuf[128]; - for (lp = lforw(bp->b_headp); lp != bp->b_headp; lp = lforw(lp)) { + for (lp = bfirstlp(bp); lp != bp->b_headp; lp = lforw(lp)) { if (llength(lp) >= 128) return (FALSE); (void)strncpy(excbuf, ltext(lp), llength(lp)); |