From d7199e8bb53f3fc40bdb877af274a3bd12efeb06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Sun, 24 Aug 2008 00:36:29 +0000 Subject: [PATCH] fix bsdl parser error for 'bit' command git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1344 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 5 +++++ jtag/src/bsdl/bsdl_sem.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index d12a0830..e698c1d4 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,8 @@ +2008-08-24 Arnim Laeuger + + * src/bsdl/bsdl_sem.c (bsdl_process_cell_info): fix error with + repeated usage of cmd[] + 2008-08-22 Arnim Laeuger * src/bsdl/vhdl_bison.y: enhanced error reporting diff --git a/jtag/src/bsdl/bsdl_sem.c b/jtag/src/bsdl/bsdl_sem.c index 578f2c7f..4a0b38eb 100644 --- a/jtag/src/bsdl/bsdl_sem.c +++ b/jtag/src/bsdl/bsdl_sem.c @@ -299,7 +299,7 @@ static void bsdl_process_cell_info( jtag_ctrl_t *jc ) NULL, NULL, NULL, - ctrl_bit_num_str, + NULL, disable_safe_value_str, "Z", NULL}; @@ -353,6 +353,7 @@ static void bsdl_process_cell_info( jtag_ctrl_t *jc ) /* convert disable safe value to string */ snprintf( disable_safe_value_str, str_len, "%i", ci->disable_safe_value ); disable_safe_value_str[str_len] = '\0'; + cmd[5] = ctrl_bit_num_str; } else /* stop command procssing here */