openocd icon indicating copy to clipboard operation
openocd copied to clipboard

Fix calloc argument order warning/error

Open R055A opened this issue 1 year ago • 0 comments

Fixes #101 - calloc warning error returned from line 1476 in src/jtag/drivers/ulink.c

Before fix:

tdo_buffer_start = calloc(sizeof(uint8_t), scan_size_bytes);

After fix:

tdo_buffer_start = calloc(scan_size_bytes, sizeof(uint8_t));

R055A avatar Jul 17 '24 08:07 R055A