zephyrproject-rtos / openocd

OpenOCD with Zephyr patches for building Zephyr SDK
Other
28 stars 45 forks source link

Fix calloc argument order warning/error #63

Open R055A opened 1 month ago

R055A commented 1 month ago

Fixes #62 - calloc warning error returned from line 1487 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));