summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-24 10:19:52 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-24 10:19:52 +0000
commit8a16edcb82485ab189d1f1167ca787bedc144a3b (patch)
tree25fba3f2536cecabbb1bdece50c58fe91e7a7246
parent408c7d23853c0fbb664d96ac7beea43a4826f799 (diff)
Don't assume that map_table[0] is the fundamental map.
-rw-r--r--usr.bin/mg/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/fileio.c b/usr.bin/mg/fileio.c
index aaf825b441a..0941c16156e 100644
--- a/usr.bin/mg/fileio.c
+++ b/usr.bin/mg/fileio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fileio.c,v 1.16 2001/05/24 03:05:22 mickey Exp $ */
+/* $OpenBSD: fileio.c,v 1.17 2001/05/24 10:19:51 art Exp $ */
/*
* POSIX fileio.c
@@ -453,7 +453,7 @@ dired_(dirname)
bp->b_dotp = lforw(bp->b_linep); /* go to first line */
(void) strncpy(bp->b_fname, dirname, NFILEN);
if ((bp->b_modes[0] = name_mode("dired")) == NULL) {
- bp->b_modes[0] = &map_table[0];
+ bp->b_modes[0] = name_mode("fundamental");
ewprintf("Could not find mode dired");
return NULL;
}