Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix readlines.c #71

Merged
merged 1 commit into from
Apr 1, 2024
Merged

Fix readlines.c #71

merged 1 commit into from
Apr 1, 2024

Conversation

sadeem-albir
Copy link
Contributor

At the test-part of the if-statement, please recall that we're checking for the total number of characters used in storage out of 10,000; we're not checking for the string-length of stored_lines added with the current line length being more than 10,000, especially when neither is stored_lines itself being changed in the program nor is the length of the current line allowed to be more than 1,000 to begin with.

At the test-part of the if-statement, please recall that we're checking for the *total* number of characters used in storage out of 10,000; we're not checking for the string-length of stored_lines added with the current line length being more than 10,000. Especially when neither is stored_lines itself being changed in the program nor is the length of the current line allowed to be more than 1,000 to begin with.
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.

@sadeem-albir Thanks for this!

@ohkimur ohkimur merged commit c9532ab into ohkimur:main Apr 1, 2024
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