Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix calloc argument order warning/error #63

Open
wants to merge 1 commit into
base: zephyr-20220611
Choose a base branch
from

Conversation

R055A
Copy link

@R055A R055A commented Jul 17, 2024

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));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calloc warning/error
1 participant