Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/jtag/drivers/ulink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ int ulink_queue_scan(struct ulink *device, struct jtag_command *cmd)

/* Allocate TDO buffer if required */
if ((type == SCAN_IN) || (type == SCAN_IO)) {
tdo_buffer_start = calloc(sizeof(uint8_t), scan_size_bytes);
tdo_buffer_start = calloc(scan_size_bytes, sizeof(uint8_t));

if (tdo_buffer_start == NULL)
return ERROR_FAIL;
Expand Down