Commit a6af7094 authored by Santiago Gimeno's avatar Santiago Gimeno Committed by Bert Belder
Browse files

fs: use stat.st_size only to read regular files

Using st_size to read non-regular files can lead to not reading all the
data.

PR-URL: https://github.com/iojs/io.js/pull/1074


Reviewed-By: default avatarBert Belder <bertbelder@gmail.com>
parent 0782c249
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment