Skip to content

Conversation

MuhammadSalah-MS
Copy link
Contributor

The previous version of get_line did not increment the length counter for the final newline character when the line exceeded MAXLINE. This commit adds a check after counting the extra characters before EOF and '\n' Incrementing the counter if there was an escape sequence for newline

…cape sequence '\n'

The previous version of get_line did not increment the length counter for the final newline character when the line exceeded MAXLINE.
This commit adds a check after counting the extra characters before EOF and '\n'
Incrementing the counter if there was an escape sequence for newline
Copy link
Owner

@ohkimur ohkimur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contribution!

@ohkimur ohkimur merged commit 2f1fed8 into ohkimur:main Apr 25, 2025
1 check passed
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.

2 participants