[corlib] Fixed FileStream Write after Read issue
authorMarcos Henrich <marcos.henrich@xamarin.com>
Thu, 25 Feb 2016 18:39:30 +0000 (18:39 +0000)
committerMarcos Henrich <marcos.henrich@xamarin.com>
Thu, 25 Feb 2016 18:47:09 +0000 (18:47 +0000)
commit2fd036928cd6a2feda3c4a3e49c3395b9e10c586
treec62eec67512c942922517671b0206b90c91c286f
parentabaf937ca57e87b32804ca25f3bcfb2df37f4a14
[corlib] Fixed FileStream Write after Read issue

FileStream was writing to the wrong position When a value longer than
the FileStream buffer was written after a read.

This was fixed by doing a seek before doing the problematic write.

Fixes #11699
mcs/class/corlib/System.IO/FileStream.cs