|
> Actually the C function behaves properly, just that Lua makes no attempt to > determine how much was actually read. If the data read contains \0 then there is no way to determine how much was actually read. fgets relies on strlen to determine that.