stdlinux2-source icon indicating copy to clipboard operation
stdlinux2-source copied to clipboard

Use read size instead of BUFFER_SIZE to count correctly

Open fshin1988 opened this issue 8 years ago • 0 comments

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

fshin1988 avatar Sep 22 '17 11:09 fshin1988