From 8a34f8ba881273c34e9ee0ce947b32859b0ae2d6 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Fri, 6 Nov 1998 03:50:44 +0000 Subject: [PATCH] Ack. Create parseable command tail properly, and eat args out of the TIB. --- sys/boot/common/interp_forth.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/boot/common/interp_forth.c b/sys/boot/common/interp_forth.c index 94cc9feb530b..dff0d2507022 100644 --- a/sys/boot/common/interp_forth.c +++ b/sys/boot/common/interp_forth.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: interp_forth.c,v 1.3 1998/11/05 08:39:38 jkh Exp $ + * $Id: interp_forth.c,v 1.4 1998/11/06 03:45:36 msmith Exp $ */ #include @@ -77,8 +77,11 @@ bf_command(FICL_VM *vm) line = malloc(strlen(name) + len + 2); strcpy(line, name); - if (len > 0) + if (len > 0) { + strcat(line, " "); strncat(line, tail, len); + vmUpdateTib(vm, tail + len); + } DEBUG("cmd '%s'", line); command_errmsg = command_errbuf;