yahdlc
yahdlc copied to clipboard
fixed wrong frame size in case frame size equals source buffer size
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.