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 #102

Closed
wants to merge 1 commit into from

Conversation

R055A
Copy link

@R055A R055A commented Jul 17, 2024

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 R055A changed the title Fix calloc argument order error Fix calloc argument order warning/error Jul 17, 2024
@R055A R055A changed the base branch from rp2040-v0.12.0 to sdk-2.0.0 August 26, 2024 16:55
@Jan200101
Copy link

same happens at src/jtag/drivers/angie.c:1600

@R055A R055A closed this by deleting the head repository Nov 8, 2024
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
2 participants