diff options
Diffstat (limited to 'usr.bin/mg/dired.c')
-rw-r--r-- | usr.bin/mg/dired.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/dired.c b/usr.bin/mg/dired.c index 8aeffa6a1a2..2243b7f71ce 100644 --- a/usr.bin/mg/dired.c +++ b/usr.bin/mg/dired.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dired.c,v 1.40 2006/07/25 08:22:32 kjell Exp $ */ +/* $OpenBSD: dired.c,v 1.41 2006/07/25 08:27:09 kjell Exp $ */ /* This file is in the public domain. */ @@ -336,7 +336,7 @@ d_expunge(int f, int n) struct line *lp, *nlp; char fname[NFILEN]; - for (lp = lforw(curbp->b_headp); lp != curbp->b_headp; lp = nlp) { + for (lp = bfirstlp(curbp); lp != curbp->b_headp; lp = nlp) { nlp = lforw(lp); if (llength(lp) && lgetc(lp, 0) == 'D') { switch (d_makename(lp, fname, sizeof(fname))) { @@ -630,7 +630,7 @@ dired_(char *dname) strerror(errno)); return (NULL); } - bp->b_dotp = lforw(bp->b_headp); /* go to first line */ + bp->b_dotp = bfirstlp(bp); (void)strlcpy(bp->b_fname, dname, sizeof(bp->b_fname)); (void)strlcpy(bp->b_cwd, dname, sizeof(bp->b_cwd)); if ((bp->b_modes[1] = name_mode("dired")) == NULL) { |