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

Add null terminator to strings returned from fast_serial_read_until #15

Merged
merged 1 commit into from
May 21, 2024

Conversation

carterturn
Copy link
Collaborator

This fixes a bug where sscanf could continue reading part of an old command if the most recent command is shorter.

@carterturn carterturn added the bug Something isn't working label Apr 28, 2024
@carterturn carterturn requested a review from dihm April 28, 2024 20:23
@dihm
Copy link
Collaborator

dihm commented Apr 29, 2024

I suspect this is fine, but would be curious to see a test case to confirm the fix against if you have the code readily handy.

@dihm dihm merged commit 3e4adc6 into main May 21, 2024
1 check passed
@dihm dihm mentioned this pull request May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants