diff options
author | msmith <msmith@FreeBSD.org> | 1998-11-06 03:50:44 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1998-11-06 03:50:44 +0000 |
commit | 49cc339a79aeb6835a4cf53150aec5d910e18109 (patch) | |
tree | 4ee3d7519580d2fac5535a74f3c10e593047d6ad /sys/boot | |
parent | f224c679079f44d2e8508a5a610e9721d946d53a (diff) | |
download | FreeBSD-src-49cc339a79aeb6835a4cf53150aec5d910e18109.zip FreeBSD-src-49cc339a79aeb6835a4cf53150aec5d910e18109.tar.gz |
Ack. Create parseable command tail properly, and eat args out of the TIB.
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/common/interp_forth.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/boot/common/interp_forth.c b/sys/boot/common/interp_forth.c index 94cc9fe..dff0d25 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 <stand.h> @@ -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; |