SafeStream: added support for ftruncate
Merge pull request #1205 from besanek/master

SafeStream: Support for ftruncate