Skip to content

fixed wrong frame size in case frame size equals source buffer size - #14

Open
peterbone-bo wants to merge 1 commit into
masterfrom
pebo/fix-wrong-frame-size
Open

fixed wrong frame size in case frame size equals source buffer size#14
peterbone-bo wants to merge 1 commit into
masterfrom
pebo/fix-wrong-frame-size

Conversation

@peterbone-bo

Copy link
Copy Markdown

If we have a frame with a size that equals the src_len (source buffer size), then the returned frame size from yahdlc_get_data_with_state ends up being one less than the frame size.

Therefore, add 1 to return the correct frame size.

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.

1 participant