jow- / ucode

JavaScript-like language with optional templating
ISC License
87 stars 24 forks source link

fs: use `getline()` for line wise read operations #115

Closed jow- closed 1 year ago

jow- commented 1 year ago

Use getline() instead of a custom fgets() wrapper logic to perform line wise reads from open file handles. This is required to properly deal with lines containing embedded null bytes.

Signed-off-by: Jo-Philipp Wich jo@mein.io