Skip to content

Conversation

@glitch911
Copy link

if (Tail==MainBuf_SIZE) Tail = 0;
Must be apply after Tail++ (or always before but all other functions are in this way except getAfter and this could cause crash if another function is called after getAfter and Tail = MainBuf_SIZE, MainBuf[MainBuf_SIZE] crashes

if (Tail==MainBuf_SIZE) Tail = 0;
Must be apply after Tail++ (or always before but all other functions are in this way except getAfter and this could cause crash if another function is called after getAfter and Tail = MainBuf_SIZE, MainBuf[MainBuf_SIZE] crashes
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