From 1b75918eb87e1e24053585f0120e2f2e43d79f0f 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 f0d46016a5..43ab42d24c 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 0d307577ae..34cb057db3 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.11.0