diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 40e34d0a..97a5aea4 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,3 +1,8 @@ +2011-07-06 Jie Zhang + + * src/tap/chain.c (urj_tap_chain_connect): Correct checking of the + parameter number of parallel cable. + 2011-07-04 Mike Frysinger * src/bus/arm9tdmi.c, src/bus/ejtag_dma.c, src/bus/ixp435.c, diff --git a/urjtag/src/tap/chain.c b/urjtag/src/tap/chain.c index 57bc327b..c6070ac4 100644 --- a/urjtag/src/tap/chain.c +++ b/urjtag/src/tap/chain.c @@ -96,10 +96,10 @@ urj_tap_chain_connect (urj_chain_t *chain, const char *drivername, char *params[ if (driver->device_type == URJ_CABLE_DEVICE_PARPORT) { - if (paramc < 1) + if (paramc < 2) { urj_error_set (URJ_ERROR_SYNTAX, - "parallel cable requires >= 2 parameters, got %d", paramc); + "parallel cable requires >= 4 parameters, got %d", paramc); return URJ_STATUS_FAIL; } for (j = 0; j < URJ_CABLE_PARPORT_N_DEVS; j++)