Index: trunk/Ohana/src/opihi/lib.shell/command.c
===================================================================
--- trunk/Ohana/src/opihi/lib.shell/command.c	(revision 2937)
+++ trunk/Ohana/src/opihi/lib.shell/command.c	(revision 3187)
@@ -32,5 +32,6 @@
 
   /* this needs some work to use multicommand correctly */
-  ALLOCATE (argv, char *, targc);
+  /* allocate extra space to have null terminated list */
+  ALLOCATE (argv, char *, targc + 1); 
   argc = 0;
   status = TRUE;
@@ -43,4 +44,5 @@
 
       if (argc == 0) continue;
+      argv[argc] = 0;
 
       cmd = MatchCommand (argv[0], TRUE, FALSE);
