Manage length correctly in readers\std\in::read()

If $length is null, fgets() generate this warning:
Warning: fgets(): Length parameter must be greater than 0

So, if $length is null, fgets() must be called without any second
argument to avoid this warning.