Even better emulate POSIX file functions (reduced)

This is reduced version of #5694.
Only obvious fixes.
Yes please change array otherwise de get compile warnings.
On Nov 13, 2014 1:43 AM, "Karlson2k" <notifications@github.com> wrote:

> In xbmc/cores/DllLoader/exports/emu_msvcrt.cpp:
>
> > @@ -1226,7 +1257,7 @@ extern "C"
> >    {
> >      if (IS_STDOUT_STREAM(stream) || IS_STDERR_STREAM(stream))
> >      {
> > -      char tmp[2] = { (char)character, 0 };
> > +      char tmp[2] = { (unsigned char)character, 0 };
>
> According to POSIX specifications, int should be casted to unsigned char.
> So this will change the behavior.
> For clarity, I can change array to unsigned chars, but it doesn't matter
> (result will be the same).
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/xbmc/xbmc/pull/5707/files#r20265090>.
>