summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/command.c
diff options
context:
space:
mode:
authorgpalmer <gpalmer@FreeBSD.org>1995-05-18 23:36:21 +0000
committergpalmer <gpalmer@FreeBSD.org>1995-05-18 23:36:21 +0000
commiteb85b80929a76ed638b06842b5de80bd31e56f6e (patch)
treedfb72fe84b1fd5f6141bc5b988a09192fb7d2e2b /usr.sbin/sysinstall/command.c
parente63863f4e08d1dea5b88803b667097a2b243783f (diff)
downloadFreeBSD-src-eb85b80929a76ed638b06842b5de80bd31e56f6e.zip
FreeBSD-src-eb85b80929a76ed638b06842b5de80bd31e56f6e.tar.gz
Sigh. Add a ++ which was causing the newfs'ing of non-root filesystems to
fail :-(
Diffstat (limited to 'usr.sbin/sysinstall/command.c')
-rw-r--r--usr.sbin/sysinstall/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/command.c b/usr.sbin/sysinstall/command.c
index ff29b4e..08a58a1 100644
--- a/usr.sbin/sysinstall/command.c
+++ b/usr.sbin/sysinstall/command.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: command.c,v 1.5 1995/05/18 02:42:31 jkh Exp $
+ * $Id: command.c,v 1.6 1995/05/18 09:01:44 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -107,7 +107,7 @@ command_shell_add(char *key, char *fmt, ...)
commandStack[numCommands]->ncmds = 1;
commandStack[numCommands]->cmds[0].type = CMD_SHELL;
commandStack[numCommands]->cmds[0].ptr = (void *)cmd;
- commandStack[numCommands]->cmds[0].data = NULL;
+ commandStack[numCommands++]->cmds[0].data = NULL;
}
/* Add a shell command under a given key */
OpenPOWER on IntegriCloud