From 917c78f96218e5c9b76ce2de83579e6508ddd29c Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 3 Jul 2007 17:19:38 +0000 Subject: [PATCH] 2007-07-03 Yoshinori Sato * compile.c (sim_resume): Fix the last byte of ARGV for SYS_CMDLINE. --- sim/h8300/ChangeLog | 5 +++++ sim/h8300/compile.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog index f0d46016a55..43ab42d24c6 100644 --- a/sim/h8300/ChangeLog +++ b/sim/h8300/ChangeLog @@ -1,3 +1,8 @@ +2007-07-03 Yoshinori Sato + + * compile.c (sim_resume): Fix the last byte of ARGV for + SYS_CMDLINE. + 2006-12-21 Hans-Peter Nilsson * acconfig.h: Remove. diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c index 0d307577ae3..34cb057db3f 100644 --- a/sim/h8300/compile.c +++ b/sim/h8300/compile.c @@ -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; -- 2.30.2