Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use read size instead of BUFFER_SIZE to count correctly#1

Open
fshin1988 wants to merge 1 commit into
aamine:master from
fshin1988:fix_do_word_count
Open

Use read size instead of BUFFER_SIZE to count correctly #1
fshin1988 wants to merge 1 commit into
aamine:master from
fshin1988:fix_do_word_count

Conversation

@fshin1988

@fshin1988 fshin1988 commented Sep 22, 2017

Copy link
Copy Markdown

This fixes do_word_count in wc-l-syscall.c.
To correctly count '\n', use read size(variable n) instead of BUFFER_SIZE.

ashiba and flect-ryogo108 reacted with thumbs up emoji
dokutoku pushed a commit to dokutoku/stdlinux2-source that referenced this pull request Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /