fs_fnread: cut buffer using actual read size

Avoid uninitialized string buffer when the file is smaller than `len`
passed to `fs_nread` and `fs_fnread`.
Merge pull request #23 from quark-zju/patch-1

fs_fnread: cut buffer using actual read size