yahdlc icon indicating copy to clipboard operation
yahdlc copied to clipboard

fixed wrong frame size in case frame size equals source buffer size

Open peterbone-bo opened this issue 11 months ago • 0 comments

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.

peterbone-bo avatar Feb 28 '24 11:02 peterbone-bo