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

Agent might be parsing message wrong #1

Open
TheOnlyArtz opened this issue Mar 1, 2021 · 0 comments
Open

Agent might be parsing message wrong #1

TheOnlyArtz opened this issue Mar 1, 2021 · 0 comments

Comments

@TheOnlyArtz
Copy link
Owner

Since we drain the payload to only include the neccessary bytes, we should not be left with any false information such as traling null bytes (0u8)

let trimmed = msg
.get(..n_bytes)
.unwrap()
.split(|s| s == &(0 as u8))
.next()
.unwrap();

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

No branches or pull requests

1 participant