2007-07-03 Yoshinori Sato <ysato@users.sourceforge.jp>

* compile.c (sim_resume): Fix the last byte of ARGV for
	SYS_CMDLINE.
This commit is contained in:
Daniel Jacobowitz
2007-07-03 17:19:38 +00:00
parent a25694b439
commit 917c78f962
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2007-07-03 Yoshinori Sato <ysato@users.sourceforge.jp>
* compile.c (sim_resume): Fix the last byte of ARGV for
SYS_CMDLINE.
2006-12-21 Hans-Peter Nilsson <hp@axis.com>
* acconfig.h: Remove.

View File

@@ -2810,7 +2810,7 @@ sim_resume (SIM_DESC sd, int step, int siggnal)
ind_arg_len = 0;
/* The size of the commandline argument. */
ind_arg_len = strlen (h8_get_cmdline_arg (sd, i) + 1);
ind_arg_len = strlen (h8_get_cmdline_arg (sd, i)) + 1;
/* The total size of the command line string. */
size_cmdline += ind_arg_len;