From: <oh...@ma...> - 2009-05-12 21:31:51
|
Author: oharboe Date: 2009-05-12 21:31:50 +0200 (Tue, 12 May 2009) New Revision: 1770 Modified: trunk/src/jtag/jtag.c Log: irscan now also works correctly in addition to not crashing :-) Modified: trunk/src/jtag/jtag.c =================================================================== --- trunk/src/jtag/jtag.c 2009-05-12 18:32:57 UTC (rev 1769) +++ trunk/src/jtag/jtag.c 2009-05-12 19:31:50 UTC (rev 1770) @@ -2889,7 +2889,7 @@ } } - int num_fields= num_fields; + int num_fields = argc / 2; fields = malloc(sizeof(scan_field_t) * num_fields); |